Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetGitCommit() []byte
- func (m *Info) GetProtocol() string
- func (m *Info) GetVersion() string
- func (m *Info) Marshal() (dAtA []byte, err error)
- func (m *Info) MarshalTo(dAtA []byte) (int, error)
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) Size() (n int)
- func (m *Info) String() string
- func (m *Info) Unmarshal(dAtA []byte) error
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type InformReq
- func (*InformReq) Descriptor() ([]byte, []int)
- func (m *InformReq) Marshal() (dAtA []byte, err error)
- func (m *InformReq) MarshalTo(dAtA []byte) (int, error)
- func (*InformReq) ProtoMessage()
- func (m *InformReq) Reset()
- func (m *InformReq) Size() (n int)
- func (m *InformReq) String() string
- func (m *InformReq) Unmarshal(dAtA []byte) error
- func (m *InformReq) XXX_DiscardUnknown()
- func (m *InformReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InformReq) XXX_Merge(src proto.Message)
- func (m *InformReq) XXX_Size() int
- func (m *InformReq) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGrpcapi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGrpcapi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { // Returns information about the API. Inform(ctx context.Context, in *InformReq, opts ...grpc.CallOption) (*Info, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type Info ¶
type Info struct { Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` GitCommit []byte `protobuf:"bytes,3,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The info message containing information about the API.
func (*Info) Descriptor ¶
func (*Info) GetGitCommit ¶
func (*Info) GetProtocol ¶
func (*Info) GetVersion ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Marshal ¶ added in v0.2.0
func (*Info) XXX_Unmarshal ¶ added in v0.2.0
type InformReq ¶
type InformReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The inform request message.
func (*InformReq) Descriptor ¶
func (*InformReq) ProtoMessage ¶
func (*InformReq) ProtoMessage()
func (*InformReq) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *InformReq) XXX_DiscardUnknown()
func (*InformReq) XXX_Marshal ¶ added in v0.2.0
func (*InformReq) XXX_Unmarshal ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.