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/app/clock/grpc/clock.proto

It has these top-level messages:

LocalReq
RemoteReq
Time

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthClock = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClock   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterClockServer

func RegisterClockServer(s *grpc1.Server, srv ClockServer)

Types

type ClockClient

type ClockClient interface {
	// Returns the local time.
	Local(ctx context.Context, in *LocalReq, opts ...grpc1.CallOption) (*Time, error)
	// Returns a peer's remote time.
	Remote(ctx context.Context, in *RemoteReq, opts ...grpc1.CallOption) (*Time, error)
}

func NewClockClient

func NewClockClient(cc *grpc1.ClientConn) ClockClient

type ClockServer

type ClockServer interface {
	// Returns the local time.
	Local(context.Context, *LocalReq) (*Time, error)
	// Returns a peer's remote time.
	Remote(context.Context, *RemoteReq) (*Time, error)
}

type LocalReq

type LocalReq struct {
}

The Local request message.

func (*LocalReq) Descriptor

func (*LocalReq) Descriptor() ([]byte, []int)

func (*LocalReq) Marshal

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

func (*LocalReq) MarshalTo

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

func (*LocalReq) ProtoMessage

func (*LocalReq) ProtoMessage()

func (*LocalReq) Reset

func (m *LocalReq) Reset()

func (*LocalReq) Size

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

func (*LocalReq) String

func (m *LocalReq) String() string

func (*LocalReq) Unmarshal

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

type RemoteReq

type RemoteReq struct {
	PeerId []byte `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
}

The Remote request message.

func (*RemoteReq) Descriptor

func (*RemoteReq) Descriptor() ([]byte, []int)

func (*RemoteReq) GetPeerId

func (m *RemoteReq) GetPeerId() []byte

func (*RemoteReq) Marshal

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

func (*RemoteReq) MarshalTo

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

func (*RemoteReq) ProtoMessage

func (*RemoteReq) ProtoMessage()

func (*RemoteReq) Reset

func (m *RemoteReq) Reset()

func (*RemoteReq) Size

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

func (*RemoteReq) String

func (m *RemoteReq) String() string

func (*RemoteReq) Unmarshal

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

type Time

type Time struct {
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

The time message containing a Unix nano timestamp.

func (*Time) Descriptor

func (*Time) Descriptor() ([]byte, []int)

func (*Time) GetTimestamp

func (m *Time) GetTimestamp() int64

func (*Time) Marshal

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

func (*Time) MarshalTo

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

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) Reset

func (m *Time) Reset()

func (*Time) Size

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

func (*Time) String

func (m *Time) String() string

func (*Time) Unmarshal

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

Jump to

Keyboard shortcuts

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