hello

package
v0.0.0-...-d00d5d6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommunicateServer

func RegisterCommunicateServer(s *grpc.Server, srv CommunicateServer)

Types

type CommunicateClient

type CommunicateClient interface {
	Speak(ctx context.Context, in *Content, opts ...grpc.CallOption) (*Content, error)
}

CommunicateClient is the client API for Communicate service.

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

func NewCommunicateClient

func NewCommunicateClient(cc *grpc.ClientConn) CommunicateClient

type CommunicateServer

type CommunicateServer interface {
	Speak(context.Context, *Content) (*Content, error)
}

CommunicateServer is the server API for Communicate service.

type Content

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

func (*Content) Descriptor

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

func (*Content) GetDetail

func (m *Content) GetDetail() string

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) Reset

func (m *Content) Reset()

func (*Content) String

func (m *Content) String() string

func (*Content) XXX_DiscardUnknown

func (m *Content) XXX_DiscardUnknown()

func (*Content) XXX_Marshal

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

func (*Content) XXX_Merge

func (dst *Content) XXX_Merge(src proto.Message)

func (*Content) XXX_Size

func (m *Content) XXX_Size() int

func (*Content) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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