grpc

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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 APIServer

type APIServer interface {
	// Returns information about the API.
	Inform(context.Context, *InformReq) (*Info, error)
}

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) Descriptor() ([]byte, []int)

func (*Info) GetGitCommit

func (m *Info) GetGitCommit() []byte

func (*Info) GetProtocol

func (m *Info) GetProtocol() string

func (*Info) GetVersion

func (m *Info) GetVersion() string

func (*Info) Marshal

func (m *Info) Marshal() (dAtA []byte, err error)

func (*Info) MarshalTo

func (m *Info) MarshalTo(dAtA []byte) (int, error)

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) Size

func (m *Info) Size() (n int)

func (*Info) String

func (m *Info) String() string

func (*Info) Unmarshal

func (m *Info) Unmarshal(dAtA []byte) error

func (*Info) XXX_DiscardUnknown added in v0.2.0

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal added in v0.2.0

func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Info) XXX_Merge added in v0.2.0

func (dst *Info) XXX_Merge(src proto.Message)

func (*Info) XXX_Size added in v0.2.0

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal added in v0.2.0

func (m *Info) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*InformReq) Marshal

func (m *InformReq) Marshal() (dAtA []byte, err error)

func (*InformReq) MarshalTo

func (m *InformReq) MarshalTo(dAtA []byte) (int, error)

func (*InformReq) ProtoMessage

func (*InformReq) ProtoMessage()

func (*InformReq) Reset

func (m *InformReq) Reset()

func (*InformReq) Size

func (m *InformReq) Size() (n int)

func (*InformReq) String

func (m *InformReq) String() string

func (*InformReq) Unmarshal

func (m *InformReq) Unmarshal(dAtA []byte) error

func (*InformReq) XXX_DiscardUnknown added in v0.2.0

func (m *InformReq) XXX_DiscardUnknown()

func (*InformReq) XXX_Marshal added in v0.2.0

func (m *InformReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InformReq) XXX_Merge added in v0.2.0

func (dst *InformReq) XXX_Merge(src proto.Message)

func (*InformReq) XXX_Size added in v0.2.0

func (m *InformReq) XXX_Size() int

func (*InformReq) XXX_Unmarshal added in v0.2.0

func (m *InformReq) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL