Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(impl Interface, opts ...thrift.RegisterOption) []transport.Registrant
New prepares an implementation of the KeyValue service for registration.
handler := KeyValueHandler{} dispatcher.Register(keyvalueserver.New(handler))
Types ¶
type Interface ¶
type Interface interface { GetValue( ctx context.Context, reqMeta yarpc.ReqMeta, Key *string, ) (string, yarpc.ResMeta, error) SetValue( ctx context.Context, reqMeta yarpc.ReqMeta, Key *string, Value *string, ) (yarpc.ResMeta, error) }
Interface is the server-side interface for the KeyValue service.
Click to show internal directories.
Click to hide internal directories.