Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
github.com/tomogoma/usersms/pkg/api/status.proto
It has these top-level messages:
Request Response
Index ¶
- func RegisterStatusHandler(s server.Server, hdlr StatusHandler, opts ...server.HandlerOption)
- type Key
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetCanonicalName() string
- func (m *Response) GetDescription() string
- func (m *Response) GetName() string
- func (m *Response) GetVersion() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- type Status
- type StatusClient
- type StatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStatusHandler ¶
func RegisterStatusHandler(s server.Server, hdlr StatusHandler, opts ...server.HandlerOption)
Types ¶
type Request ¶
type Request struct {
APIKey string `protobuf:"bytes,1,opt,name=APIKey" json:"APIKey,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` CanonicalName string `protobuf:"bytes,4,opt,name=canonicalName" json:"canonicalName,omitempty"` }
func (*Response) Descriptor ¶
func (*Response) GetCanonicalName ¶
func (*Response) GetDescription ¶
func (*Response) GetVersion ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Status ¶
type Status struct {
StatusHandler
}
type StatusClient ¶
type StatusClient interface {
Check(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewStatusClient ¶
func NewStatusClient(serviceName string, c client.Client) StatusClient
Click to show internal directories.
Click to hide internal directories.