Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure

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,
		Key *string,
	) (string, error)

	SetValue(
		ctx context.Context,
		Key *string,
		Value *string,
	) error
}

Interface is the server-side interface for the KeyValue service.

Source Files