forked from yarpc/yarpc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.go
32 lines (25 loc) · 826 Bytes
/
server.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Code generated by thriftrw-plugin-yarpc
// @generated
package emptyserviceserver
import (
transport "go.uber.org/yarpc/api/transport"
thrift "go.uber.org/yarpc/encoding/thrift"
)
// Interface is the server-side interface for the EmptyService service.
type Interface interface {
}
// New prepares an implementation of the EmptyService service for
// registration.
//
// handler := EmptyServiceHandler{}
// dispatcher.Register(emptyserviceserver.New(handler))
func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure {
service := thrift.Service{
Name: "EmptyService",
Methods: []thrift.Method{},
}
procedures := make([]transport.Procedure, 0, 0)
procedures = append(procedures, thrift.BuildProcedures(service, opts...)...)
return procedures
}
type handler struct{ impl Interface }