Documentation
¶
Index ¶
- Variables
- type Handler
- func (h *Handler) Del(ctx context.Context, rq *v1.DelRequest) (*emptypb.Empty, error)
- func (h *Handler) DelSecret(ctx context.Context, rq *v1.DelSecretRequest) (*emptypb.Empty, error)
- func (h *Handler) Get(ctx context.Context, rq *v1.GetRequest) (*v1.GetResponse, error)
- func (h *Handler) GetSecret(ctx context.Context, rq *v1.GetSecretRequest) (*v1.GetSecretResponse, error)
- func (h *Handler) Set(ctx context.Context, rq *v1.SetRequest) (*emptypb.Empty, error)
- func (h *Handler) SetSecret(ctx context.Context, rq *v1.SetSecretRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewHandler, wire.Bind(new(v1.CacheServerServer), new(*Handler)))
ProviderSet contains providers for creating instances of the biz struct.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
v1.UnimplementedCacheServerServer
// contains filtered or unexported fields
}
Handler provides gRPC methods to handle cache operations.
func NewHandler ¶
NewCacheServerHandler creates and returns a new instance of Handler.
func (*Handler) Get ¶
func (h *Handler) Get(ctx context.Context, rq *v1.GetRequest) (*v1.GetResponse, error)
Get retrieves a key's value from the cache by namespace.
func (*Handler) GetSecret ¶
func (h *Handler) GetSecret(ctx context.Context, rq *v1.GetSecretRequest) (*v1.GetSecretResponse, error)
GetSecret retrieves a secret from the system.
Click to show internal directories.
Click to hide internal directories.