echo

package
v0.0.0-...-d8fe4a0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package echo is a generated protocol buffer package.

It is generated from these files:

echo.proto

It has these top-level messages:

Time
Ping
Pong

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSecurePingServer

func RegisterSecurePingServer(s *grpc.Server, srv SecurePingServer)

Types

type Ping

type Ping struct {
	Sender string `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"`
	Sseq   int64  `protobuf:"varint,2,opt,name=sseq" json:"sseq,omitempty"`
	Sent   *Time  `protobuf:"bytes,3,opt,name=sent" json:"sent,omitempty"`
	Ttl    int64  `protobuf:"varint,4,opt,name=ttl" json:"ttl,omitempty"`
}

func (*Ping) Descriptor

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

func (*Ping) GetSender

func (m *Ping) GetSender() string

func (*Ping) GetSent

func (m *Ping) GetSent() *Time

func (*Ping) GetSseq

func (m *Ping) GetSseq() int64

func (*Ping) GetTtl

func (m *Ping) GetTtl() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

type Pong

type Pong struct {
	Success bool  `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	Sseq    int64 `protobuf:"varint,2,opt,name=sseq" json:"sseq,omitempty"`
	Rseq    int64 `protobuf:"varint,3,opt,name=rseq" json:"rseq,omitempty"`
	Sent    *Time `protobuf:"bytes,4,opt,name=sent" json:"sent,omitempty"`
}

func (*Pong) Descriptor

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

func (*Pong) GetRseq

func (m *Pong) GetRseq() int64

func (*Pong) GetSent

func (m *Pong) GetSent() *Time

func (*Pong) GetSseq

func (m *Pong) GetSseq() int64

func (*Pong) GetSuccess

func (m *Pong) GetSuccess() bool

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

type SecurePingClient

type SecurePingClient interface {
	Echo(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error)
}

func NewSecurePingClient

func NewSecurePingClient(cc *grpc.ClientConn) SecurePingClient

type SecurePingServer

type SecurePingServer interface {
	Echo(context.Context, *Ping) (*Pong, error)
}

type Time

type Time struct {
	Seconds     int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"`
	Nanoseconds int64 `protobuf:"varint,2,opt,name=nanoseconds" json:"nanoseconds,omitempty"`
}

func Now

func Now() *Time

Now returns a time message from the current Unix timestamp

func (*Time) Descriptor

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

func (*Time) GetNanoseconds

func (m *Time) GetNanoseconds() int64

func (*Time) GetSeconds

func (m *Time) GetSeconds() int64

func (*Time) Parse

func (ts *Time) Parse() time.Time

Parse a Unix timestamp from an echo.Time message.

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) Reset

func (m *Time) Reset()

func (*Time) String

func (m *Time) String() string

Jump to

Keyboard shortcuts

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