go.uber.org/yarpc@v1.72.1/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/common/emptyserviceserver/server.go (about) 1 // Code generated by thriftrw-plugin-yarpc 2 // @generated 3 4 package emptyserviceserver 5 6 import ( 7 transport "go.uber.org/yarpc/api/transport" 8 thrift "go.uber.org/yarpc/encoding/thrift" 9 ) 10 11 // Interface is the server-side interface for the EmptyService service. 12 type Interface interface { 13 } 14 15 // New prepares an implementation of the EmptyService service for 16 // registration. 17 // 18 // handler := EmptyServiceHandler{} 19 // dispatcher.Register(emptyserviceserver.New(handler)) 20 func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { 21 22 service := thrift.Service{ 23 Name: "EmptyService", 24 Methods: []thrift.Method{}, 25 } 26 27 procedures := make([]transport.Procedure, 0, 0) 28 procedures = append(procedures, thrift.BuildProcedures(service, opts...)...) 29 return procedures 30 }