sampleapp

package
v0.0.0-...-b972074 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSampleApplicationServer

func RegisterSampleApplicationServer(s *grpc.Server, srv SampleApplicationServer)

Types

type Message

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

func (*Message) Descriptor

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

func (*Message) GetText

func (m *Message) GetText() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type SampleApplicationClient

type SampleApplicationClient interface {
	DoUnaryUnary(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
	DoUnaryStream(ctx context.Context, in *Message, opts ...grpc.CallOption) (SampleApplication_DoUnaryStreamClient, error)
	DoStreamUnary(ctx context.Context, opts ...grpc.CallOption) (SampleApplication_DoStreamUnaryClient, error)
	DoStreamStream(ctx context.Context, opts ...grpc.CallOption) (SampleApplication_DoStreamStreamClient, error)
}

SampleApplicationClient is the client API for SampleApplication service.

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

func NewSampleApplicationClient

func NewSampleApplicationClient(cc *grpc.ClientConn) SampleApplicationClient

type SampleApplicationServer

type SampleApplicationServer interface {
	DoUnaryUnary(context.Context, *Message) (*Message, error)
	DoUnaryStream(*Message, SampleApplication_DoUnaryStreamServer) error
	DoStreamUnary(SampleApplication_DoStreamUnaryServer) error
	DoStreamStream(SampleApplication_DoStreamStreamServer) error
}

SampleApplicationServer is the server API for SampleApplication service.

type SampleApplication_DoStreamStreamClient

type SampleApplication_DoStreamStreamClient interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ClientStream
}

type SampleApplication_DoStreamStreamServer

type SampleApplication_DoStreamStreamServer interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ServerStream
}

type SampleApplication_DoStreamUnaryClient

type SampleApplication_DoStreamUnaryClient interface {
	Send(*Message) error
	CloseAndRecv() (*Message, error)
	grpc.ClientStream
}

type SampleApplication_DoStreamUnaryServer

type SampleApplication_DoStreamUnaryServer interface {
	SendAndClose(*Message) error
	Recv() (*Message, error)
	grpc.ServerStream
}

type SampleApplication_DoUnaryStreamClient

type SampleApplication_DoUnaryStreamClient interface {
	Recv() (*Message, error)
	grpc.ClientStream
}

type SampleApplication_DoUnaryStreamServer

type SampleApplication_DoUnaryStreamServer interface {
	Send(*Message) error
	grpc.ServerStream
}

type UnimplementedSampleApplicationServer

type UnimplementedSampleApplicationServer struct {
}

UnimplementedSampleApplicationServer can be embedded to have forward compatible implementations.

func (*UnimplementedSampleApplicationServer) DoStreamStream

func (*UnimplementedSampleApplicationServer) DoStreamUnary

func (*UnimplementedSampleApplicationServer) DoUnaryStream

func (*UnimplementedSampleApplicationServer) DoUnaryUnary

Jump to

Keyboard shortcuts

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