Documentation
¶
Overview ¶
Package grpc is a generated protocol buffer package.
It is generated from these files:
github.com/stratumn/go-indigonode/core/app/grpcapi/grpc/grpcapi.proto
It has these top-level messages:
InformReq Info
Index ¶
- Variables
- func RegisterAPIServer(s *grpc1.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
- 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
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 ...grpc1.CallOption) (*Info, error)
}
func NewAPIClient ¶
func NewAPIClient(cc *grpc1.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"`
}
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()
type InformReq ¶
type InformReq struct {
}
The inform request message.
func (*InformReq) Descriptor ¶
func (*InformReq) ProtoMessage ¶
func (*InformReq) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.