Documentation ¶
Index ¶
- Variables
- func HTTPHandlers(proxy *gproxy.QueryProxy) ghttp.Handler
- func HealthzService(w http.ResponseWriter, _ *http.Request)
- func MustBe(method string, next http.HandlerFunc) http.HandlerFunc
- func RPCHandlers() []grpc.Handler
- func Server(port string) *http.Server
- type ErrorResponse
- type GetValueResponse
- type QueryRequest
- type QueryResponse
- type QueryService
- type SetValueRequest
- type SetValueResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilClient = gerrors.NewGError(errors.New("nil client"))
Functions ¶
func HTTPHandlers ¶
func HTTPHandlers(proxy *gproxy.QueryProxy) ghttp.Handler
func HealthzService ¶
func HealthzService(w http.ResponseWriter, _ *http.Request)
func MustBe ¶
func MustBe(method string, next http.HandlerFunc) http.HandlerFunc
func RPCHandlers ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type GetValueResponse ¶
type QueryResponse ¶
func PublishQuery ¶
type QueryService ¶
type QueryService struct {
Proxy *gproxy.QueryProxy
}
func (*QueryService) OnQuery ¶
func (qs *QueryService) OnQuery(req *QueryRequest, resp *QueryResponse) error
type SetValueRequest ¶
type SetValueResponse ¶
Click to show internal directories.
Click to hide internal directories.