handlers

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreHandler

type StoreHandler struct {
	handler.Handler
	pb.UnimplementedStoreServer
}

StoreHandler store handler

func NewStoreHandler

func NewStoreHandler(id string) *StoreHandler

NewStoreHandler new store handler

func (StoreHandler) Decrease

func (e StoreHandler) Decrease(c context.Context, req *pb.DecreaseReq) (resp *pb.DecreaseResp, err error)

func (StoreHandler) Del

func (e StoreHandler) Del(c context.Context, req *pb.DelReq) (resp *pb.DelResp, err error)

func (StoreHandler) Expire

func (e StoreHandler) Expire(c context.Context, req *pb.ExpireReq) (resp *pb.ExpireResp, err error)

func (StoreHandler) Get

func (e StoreHandler) Get(c context.Context, req *pb.GetReq) (resp *pb.GetResp, err error)

func (StoreHandler) HashDel

func (e StoreHandler) HashDel(c context.Context, req *pb.HashDelReq) (resp *pb.HashDelResp, err error)

func (StoreHandler) HashGet

func (e StoreHandler) HashGet(c context.Context, req *pb.HashGetReq) (resp *pb.HashGetResp, err error)

func (StoreHandler) Increase

func (e StoreHandler) Increase(c context.Context, req *pb.IncreaseReq) (resp *pb.IncreaseResp, err error)

func (StoreHandler) Set

func (e StoreHandler) Set(c context.Context, req *pb.SetReq) (resp *pb.SetResp, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL