Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheService ¶
type CacheService interface { // Start starts the service. Start() error // AddHandleFunc add message handler. AddHandleFunc(method pb.CmdMethod, h func(context.Context, *pb.Request, *pb.Response) error, async bool) // Close closes the service. Close() error }
CacheService is used to send GET cache request to another file-service.
func NewCacheServer ¶
func NewCacheServer(address string, cfg morpc.Config) (CacheService, error)
NewCacheServer creates a new cache server instance.
Click to show internal directories.
Click to hide internal directories.