Documentation
¶
Index ¶
- Constants
- func NewServerImpl(logger *slog.Logger, kvUrl string, version string) api.ServerInterface
- type ServerImpl
- func (s *ServerImpl) DeleteCounter(w http.ResponseWriter, r *http.Request)
- func (s *ServerImpl) GetCounter(w http.ResponseWriter, r *http.Request)
- func (s *ServerImpl) GetVersion(w http.ResponseWriter, r *http.Request)
- func (s *ServerImpl) KvDelete(w http.ResponseWriter, r *http.Request, key string)
- func (s *ServerImpl) KvGet(w http.ResponseWriter, r *http.Request, key string)
- func (s *ServerImpl) KvList(w http.ResponseWriter, r *http.Request)
- func (s *ServerImpl) KvPost(w http.ResponseWriter, r *http.Request, key string)
- func (s *ServerImpl) PostCounter(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ( COUNTER_KEY = "counter" ZONE_KEY = "zone" )
This API uses 2 entry in the KV COUNTER and ZONE
Variables ¶
This section is empty.
Functions ¶
func NewServerImpl ¶
Types ¶
type ServerImpl ¶
func (*ServerImpl) DeleteCounter ¶
func (s *ServerImpl) DeleteCounter(w http.ResponseWriter, r *http.Request)
func (*ServerImpl) GetCounter ¶
func (s *ServerImpl) GetCounter(w http.ResponseWriter, r *http.Request)
func (*ServerImpl) GetVersion ¶
func (s *ServerImpl) GetVersion(w http.ResponseWriter, r *http.Request)
func (*ServerImpl) KvDelete ¶
func (s *ServerImpl) KvDelete(w http.ResponseWriter, r *http.Request, key string)
func (*ServerImpl) KvGet ¶
func (s *ServerImpl) KvGet(w http.ResponseWriter, r *http.Request, key string)
func (*ServerImpl) KvList ¶
func (s *ServerImpl) KvList(w http.ResponseWriter, r *http.Request)
func (*ServerImpl) KvPost ¶
func (s *ServerImpl) KvPost(w http.ResponseWriter, r *http.Request, key string)
func (*ServerImpl) PostCounter ¶
func (s *ServerImpl) PostCounter(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.