api

package
v0.1.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoServer

func RegisterEchoServer(s *grpc.Server, srv EchoServer)

Types

type EchoClient

type EchoClient interface {
	Shout(ctx context.Context, in *ShoutRequest, opts ...grpc.CallOption) (*ShoutReply, error)
}

EchoClient is the client API for Echo service.

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

func NewEchoClient

func NewEchoClient(cc *grpc.ClientConn) EchoClient

type EchoServer

type EchoServer interface {
	Shout(context.Context, *ShoutRequest) (*ShoutReply, error)
}

EchoServer is the server API for Echo service.

type ShoutReply

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

func (*ShoutReply) Descriptor

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

func (*ShoutReply) GetMessage

func (m *ShoutReply) GetMessage() string

func (*ShoutReply) ProtoMessage

func (*ShoutReply) ProtoMessage()

func (*ShoutReply) Reset

func (m *ShoutReply) Reset()

func (*ShoutReply) String

func (m *ShoutReply) String() string

func (*ShoutReply) XXX_DiscardUnknown

func (m *ShoutReply) XXX_DiscardUnknown()

func (*ShoutReply) XXX_Marshal

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

func (*ShoutReply) XXX_Merge

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

func (*ShoutReply) XXX_Size

func (m *ShoutReply) XXX_Size() int

func (*ShoutReply) XXX_Unmarshal

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

type ShoutRequest

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

func (*ShoutRequest) Descriptor

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

func (*ShoutRequest) GetMessage

func (m *ShoutRequest) GetMessage() string

func (*ShoutRequest) ProtoMessage

func (*ShoutRequest) ProtoMessage()

func (*ShoutRequest) Reset

func (m *ShoutRequest) Reset()

func (*ShoutRequest) String

func (m *ShoutRequest) String() string

func (*ShoutRequest) XXX_DiscardUnknown

func (m *ShoutRequest) XXX_DiscardUnknown()

func (*ShoutRequest) XXX_Marshal

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

func (*ShoutRequest) XXX_Merge

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

func (*ShoutRequest) XXX_Size

func (m *ShoutRequest) XXX_Size() int

func (*ShoutRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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