Versions in this module Expand all Collapse all v0 v0.0.5 Jan 27, 2025 Changes in this version + type CachePlugin struct + Impl CacheService + func (p *CachePlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (p *CachePlugin) Server(*plugin.MuxBroker) (interface{}, error) + type CacheService interface + DeleteCache func(r *DeleteCacheRequest) (*DeleteCacheResponse, error) + GetCache func(r *GetCacheRequest) (*GetCacheResponse, error) + SetCache func(r *SetCacheRequest) (*SetCacheResponse, error) + Setup func(setup *Setup) error + type DefaultService struct + func (s *DefaultService) DeleteCache(r *DeleteCacheRequest) (*DeleteCacheResponse, error) + func (s *DefaultService) GetCache(r *GetCacheRequest) (*GetCacheResponse, error) + func (s *DefaultService) SetCache(r *SetCacheRequest) (*SetCacheResponse, error) + func (s *DefaultService) Setup(setup setup.Setup) error + type DeleteCacheRequest struct + Key string + type DeleteCacheResponse struct + Success bool + type GetCacheRequest struct + Key string + type GetCacheResponse struct + Value []byte + type RpcClient struct + func (c *RpcClient) DeleteCache(req *DeleteCacheRequest) (*DeleteCacheResponse, error) + func (c *RpcClient) GetCache(req *GetCacheRequest) (*GetCacheResponse, error) + func (c *RpcClient) SetCache(req *SetCacheRequest) (*SetCacheResponse, error) + func (c *RpcClient) Setup(req *Setup) error + type RpcServer struct + func (s *RpcServer) DeleteCache(req *DeleteCacheRequest, resp *DeleteCacheResponse) error + func (s *RpcServer) GetCache(req *GetCacheRequest, resp *GetCacheResponse) error + func (s *RpcServer) SetCache(req *SetCacheRequest, resp *SetCacheResponse) error + func (s *RpcServer) Setup(req *Setup, resp *error) error + type SetCacheRequest struct + Key string + TTL int64 + Value []byte + type SetCacheResponse struct + Success bool + type Setup struct + Data map[string]interface{}