api

package
v0.0.0-...-b9952e8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPingServer

func RegisterPingServer(s *grpc.Server, srv PingServer)

Types

type PingClient

type PingClient interface {
	SayHello(ctx context.Context, in *PingMessage, opts ...grpc.CallOption) (*PingMessage, error)
}

PingClient is the client API for Ping service.

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

func NewPingClient

func NewPingClient(cc grpc.ClientConnInterface) PingClient

type PingMessage

type PingMessage struct {
	Greeting             string   `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingMessage) Descriptor

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

func (*PingMessage) GetGreeting

func (m *PingMessage) GetGreeting() string

func (*PingMessage) ProtoMessage

func (*PingMessage) ProtoMessage()

func (*PingMessage) Reset

func (m *PingMessage) Reset()

func (*PingMessage) String

func (m *PingMessage) String() string

func (*PingMessage) XXX_DiscardUnknown

func (m *PingMessage) XXX_DiscardUnknown()

func (*PingMessage) XXX_Marshal

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

func (*PingMessage) XXX_Merge

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

func (*PingMessage) XXX_Size

func (m *PingMessage) XXX_Size() int

func (*PingMessage) XXX_Unmarshal

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

type PingServer

type PingServer interface {
	SayHello(context.Context, *PingMessage) (*PingMessage, error)
}

PingServer is the server API for Ping service.

type UnimplementedPingServer

type UnimplementedPingServer struct {
}

UnimplementedPingServer can be embedded to have forward compatible implementations.

func (*UnimplementedPingServer) SayHello

Jump to

Keyboard shortcuts

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