Documentation ¶
Index ¶
- Constants
- func NewRistcachedServiceHandler(svc RistcachedServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type RistcachedServiceClient
- type RistcachedServiceHandler
- type UnimplementedRistcachedServiceHandler
- func (UnimplementedRistcachedServiceHandler) Clear(context.Context, *connect_go.Request[v1.ClearRequest]) (*connect_go.Response[v1.ClearResponse], error)
- func (UnimplementedRistcachedServiceHandler) Del(context.Context, *connect_go.Request[v1.DelRequest]) (*connect_go.Response[v1.DelResponse], error)
- func (UnimplementedRistcachedServiceHandler) Get(context.Context, *connect_go.Request[v1.GetRequest]) (*connect_go.Response[v1.GetResponse], error)
- func (UnimplementedRistcachedServiceHandler) GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.GetMetricsResponse], error)
- func (UnimplementedRistcachedServiceHandler) GetTTL(context.Context, *connect_go.Request[v1.GetTTLRequest]) (*connect_go.Response[v1.GetTTLResponse], error)
- func (UnimplementedRistcachedServiceHandler) MaxCost(context.Context, *connect_go.Request[v1.MaxCostRequest]) (*connect_go.Response[v1.MaxCostResponse], error)
- func (UnimplementedRistcachedServiceHandler) Set(context.Context, *connect_go.Request[v1.SetRequest]) (*connect_go.Response[v1.SetResponse], error)
- func (UnimplementedRistcachedServiceHandler) SetWithTTL(context.Context, *connect_go.Request[v1.SetWithTTLRequest]) (*connect_go.Response[v1.SetWithTTLResponse], error)
- func (UnimplementedRistcachedServiceHandler) UpdateMaxCost(context.Context, *connect_go.Request[v1.UpdateMaxCostRequest]) (*connect_go.Response[v1.UpdateMaxCostResponse], error)
Constants ¶
const (
// RistcachedServiceName is the fully-qualified name of the RistcachedService service.
RistcachedServiceName = "ristcached.v1.RistcachedService"
)
Variables ¶
This section is empty.
Functions ¶
func NewRistcachedServiceHandler ¶
func NewRistcachedServiceHandler(svc RistcachedServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewRistcachedServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type RistcachedServiceClient ¶
type RistcachedServiceClient interface { Get(context.Context, *connect_go.Request[v1.GetRequest]) (*connect_go.Response[v1.GetResponse], error) Set(context.Context, *connect_go.Request[v1.SetRequest]) (*connect_go.Response[v1.SetResponse], error) SetWithTTL(context.Context, *connect_go.Request[v1.SetWithTTLRequest]) (*connect_go.Response[v1.SetWithTTLResponse], error) Del(context.Context, *connect_go.Request[v1.DelRequest]) (*connect_go.Response[v1.DelResponse], error) GetTTL(context.Context, *connect_go.Request[v1.GetTTLRequest]) (*connect_go.Response[v1.GetTTLResponse], error) MaxCost(context.Context, *connect_go.Request[v1.MaxCostRequest]) (*connect_go.Response[v1.MaxCostResponse], error) UpdateMaxCost(context.Context, *connect_go.Request[v1.UpdateMaxCostRequest]) (*connect_go.Response[v1.UpdateMaxCostResponse], error) Clear(context.Context, *connect_go.Request[v1.ClearRequest]) (*connect_go.Response[v1.ClearResponse], error) GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.GetMetricsResponse], error) }
RistcachedServiceClient is a client for the ristcached.v1.RistcachedService service.
func NewRistcachedServiceClient ¶
func NewRistcachedServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) RistcachedServiceClient
NewRistcachedServiceClient constructs a client for the ristcached.v1.RistcachedService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type RistcachedServiceHandler ¶
type RistcachedServiceHandler interface { Get(context.Context, *connect_go.Request[v1.GetRequest]) (*connect_go.Response[v1.GetResponse], error) Set(context.Context, *connect_go.Request[v1.SetRequest]) (*connect_go.Response[v1.SetResponse], error) SetWithTTL(context.Context, *connect_go.Request[v1.SetWithTTLRequest]) (*connect_go.Response[v1.SetWithTTLResponse], error) Del(context.Context, *connect_go.Request[v1.DelRequest]) (*connect_go.Response[v1.DelResponse], error) GetTTL(context.Context, *connect_go.Request[v1.GetTTLRequest]) (*connect_go.Response[v1.GetTTLResponse], error) MaxCost(context.Context, *connect_go.Request[v1.MaxCostRequest]) (*connect_go.Response[v1.MaxCostResponse], error) UpdateMaxCost(context.Context, *connect_go.Request[v1.UpdateMaxCostRequest]) (*connect_go.Response[v1.UpdateMaxCostResponse], error) Clear(context.Context, *connect_go.Request[v1.ClearRequest]) (*connect_go.Response[v1.ClearResponse], error) GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.GetMetricsResponse], error) }
RistcachedServiceHandler is an implementation of the ristcached.v1.RistcachedService service.
type UnimplementedRistcachedServiceHandler ¶
type UnimplementedRistcachedServiceHandler struct{}
UnimplementedRistcachedServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedRistcachedServiceHandler) Clear ¶
func (UnimplementedRistcachedServiceHandler) Clear(context.Context, *connect_go.Request[v1.ClearRequest]) (*connect_go.Response[v1.ClearResponse], error)
func (UnimplementedRistcachedServiceHandler) Del ¶
func (UnimplementedRistcachedServiceHandler) Del(context.Context, *connect_go.Request[v1.DelRequest]) (*connect_go.Response[v1.DelResponse], error)
func (UnimplementedRistcachedServiceHandler) Get ¶
func (UnimplementedRistcachedServiceHandler) Get(context.Context, *connect_go.Request[v1.GetRequest]) (*connect_go.Response[v1.GetResponse], error)
func (UnimplementedRistcachedServiceHandler) GetMetrics ¶
func (UnimplementedRistcachedServiceHandler) GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.GetMetricsResponse], error)
func (UnimplementedRistcachedServiceHandler) GetTTL ¶
func (UnimplementedRistcachedServiceHandler) GetTTL(context.Context, *connect_go.Request[v1.GetTTLRequest]) (*connect_go.Response[v1.GetTTLResponse], error)
func (UnimplementedRistcachedServiceHandler) MaxCost ¶
func (UnimplementedRistcachedServiceHandler) MaxCost(context.Context, *connect_go.Request[v1.MaxCostRequest]) (*connect_go.Response[v1.MaxCostResponse], error)
func (UnimplementedRistcachedServiceHandler) Set ¶
func (UnimplementedRistcachedServiceHandler) Set(context.Context, *connect_go.Request[v1.SetRequest]) (*connect_go.Response[v1.SetResponse], error)
func (UnimplementedRistcachedServiceHandler) SetWithTTL ¶
func (UnimplementedRistcachedServiceHandler) SetWithTTL(context.Context, *connect_go.Request[v1.SetWithTTLRequest]) (*connect_go.Response[v1.SetWithTTLResponse], error)
func (UnimplementedRistcachedServiceHandler) UpdateMaxCost ¶
func (UnimplementedRistcachedServiceHandler) UpdateMaxCost(context.Context, *connect_go.Request[v1.UpdateMaxCostRequest]) (*connect_go.Response[v1.UpdateMaxCostResponse], error)