grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

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

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 *grpc1.Server, srv APIServer)

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 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"`
}

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

type InformReq

type InformReq struct {
}

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

Jump to

Keyboard shortcuts

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