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 ¶
- Variables
- func RegisterClockServer(s *grpc1.Server, srv ClockServer)
- type ClockClient
- type ClockServer
- type LocalReq
- func (*LocalReq) Descriptor() ([]byte, []int)
- func (m *LocalReq) Marshal() (dAtA []byte, err error)
- func (m *LocalReq) MarshalTo(dAtA []byte) (int, error)
- func (*LocalReq) ProtoMessage()
- func (m *LocalReq) Reset()
- func (m *LocalReq) Size() (n int)
- func (m *LocalReq) String() string
- func (m *LocalReq) Unmarshal(dAtA []byte) error
- type RemoteReq
- func (*RemoteReq) Descriptor() ([]byte, []int)
- func (m *RemoteReq) GetPeerId() []byte
- func (m *RemoteReq) Marshal() (dAtA []byte, err error)
- func (m *RemoteReq) MarshalTo(dAtA []byte) (int, error)
- func (*RemoteReq) ProtoMessage()
- func (m *RemoteReq) Reset()
- func (m *RemoteReq) Size() (n int)
- func (m *RemoteReq) String() string
- func (m *RemoteReq) Unmarshal(dAtA []byte) error
- type Time
- func (*Time) Descriptor() ([]byte, []int)
- func (m *Time) GetTimestamp() int64
- func (m *Time) Marshal() (dAtA []byte, err error)
- func (m *Time) MarshalTo(dAtA []byte) (int, error)
- func (*Time) ProtoMessage()
- func (m *Time) Reset()
- func (m *Time) Size() (n int)
- func (m *Time) String() string
- func (m *Time) Unmarshal(dAtA []byte) error
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 LocalReq ¶
type LocalReq struct {
}
The Local request message.
func (*LocalReq) Descriptor ¶
func (*LocalReq) ProtoMessage ¶
func (*LocalReq) ProtoMessage()
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) ProtoMessage ¶
func (*RemoteReq) ProtoMessage()
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) GetTimestamp ¶
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.