echo

package
v0.0.0-...-1815555 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoServerServer

func RegisterEchoServerServer(s *grpc.Server, srv EchoServerServer)

Types

type EchoServerClient

type EchoServerClient interface {
	Fly(ctx context.Context, in *Offset, opts ...grpc.CallOption) (*Offset, error)
}

EchoServerClient is the client API for EchoServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEchoServerClient

func NewEchoServerClient(cc grpc.ClientConnInterface) EchoServerClient

type EchoServerServer

type EchoServerServer interface {
	Fly(context.Context, *Offset) (*Offset, error)
}

EchoServerServer is the server API for EchoServer service.

type Offset

type Offset struct {
	X                    float32  `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
	Y                    float32  `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Offset) Descriptor

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

func (*Offset) GetX

func (m *Offset) GetX() float32

func (*Offset) GetY

func (m *Offset) GetY() float32

func (*Offset) ProtoMessage

func (*Offset) ProtoMessage()

func (*Offset) Reset

func (m *Offset) Reset()

func (*Offset) String

func (m *Offset) String() string

func (*Offset) XXX_DiscardUnknown

func (m *Offset) XXX_DiscardUnknown()

func (*Offset) XXX_Marshal

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

func (*Offset) XXX_Merge

func (m *Offset) XXX_Merge(src proto.Message)

func (*Offset) XXX_Size

func (m *Offset) XXX_Size() int

func (*Offset) XXX_Unmarshal

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

type Point

type Point struct {
	Latitude             int32    `protobuf:"varint,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude            int32    `protobuf:"varint,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Point) Descriptor

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

func (*Point) GetLatitude

func (m *Point) GetLatitude() int32

func (*Point) GetLongitude

func (m *Point) GetLongitude() int32

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) String

func (m *Point) String() string

func (*Point) XXX_DiscardUnknown

func (m *Point) XXX_DiscardUnknown()

func (*Point) XXX_Marshal

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

func (*Point) XXX_Merge

func (m *Point) XXX_Merge(src proto.Message)

func (*Point) XXX_Size

func (m *Point) XXX_Size() int

func (*Point) XXX_Unmarshal

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

type UnimplementedEchoServerServer

type UnimplementedEchoServerServer struct {
}

UnimplementedEchoServerServer can be embedded to have forward compatible implementations.

func (*UnimplementedEchoServerServer) Fly

Jump to

Keyboard shortcuts

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