func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure
New prepares an implementation of the TestService service for registration.
handler := TestServiceHandler{} dispatcher.Register(testserviceserver.New(handler))
type Interface interface { Call( ctx context.Context, Key string, ) (string, error) }
Interface is the server-side interface for the TestService service.