Documentation ¶
Overview ¶
Package transport contains base service desc interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompoundServiceDesc ¶
type CompoundServiceDesc struct {
// contains filtered or unexported fields
}
CompoundServiceDesc combines several ServiceDesc.
func NewCompoundServiceDesc ¶
func NewCompoundServiceDesc(desc ...ServiceDesc) *CompoundServiceDesc
NewCompoundServiceDesc returns new CompoundServiceDesc.
func (*CompoundServiceDesc) RegisterGRPC ¶
func (d *CompoundServiceDesc) RegisterGRPC(g *grpc.Server)
RegisterGRPC register compounded services descs in current grpc server.
func (*CompoundServiceDesc) RegisterHTTP ¶
func (d *CompoundServiceDesc) RegisterHTTP(mux *runtime.ServeMux)
RegisterHTTP register compounded services descs in current http router.
func (*CompoundServiceDesc) SwaggerDef ¶
func (d *CompoundServiceDesc) SwaggerDef() []byte
SwaggerDef returns combines swagger definitions.
type Service ¶
type Service interface {
GetDescription() ServiceDesc
}
Service is a registerable collection of endpoints. These functions should be autogenerated by protoc-gen-tron.
Click to show internal directories.
Click to hide internal directories.