testapp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHelloServer

func RegisterHelloServer(s *grpc.Server, srv HelloServer)

Types

type Greeting

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

func (*Greeting) Descriptor

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

func (*Greeting) GetMsg

func (m *Greeting) GetMsg() string

func (*Greeting) ProtoMessage

func (*Greeting) ProtoMessage()

func (*Greeting) Reset

func (m *Greeting) Reset()

func (*Greeting) String

func (m *Greeting) String() string

func (*Greeting) XXX_DiscardUnknown

func (m *Greeting) XXX_DiscardUnknown()

func (*Greeting) XXX_Marshal

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

func (*Greeting) XXX_Merge

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

func (*Greeting) XXX_Size

func (m *Greeting) XXX_Size() int

func (*Greeting) XXX_Unmarshal

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

type HelloClient

type HelloClient interface {
	UnaryCallUnaryReturn(ctx context.Context, in *Greeting, opts ...grpc.CallOption) (*Greeting, error)
	UnaryCallStreamReturn(ctx context.Context, in *Greeting, opts ...grpc.CallOption) (Hello_UnaryCallStreamReturnClient, error)
	StreamCallUnaryReturn(ctx context.Context, opts ...grpc.CallOption) (Hello_StreamCallUnaryReturnClient, error)
	StreamCallStreamReturn(ctx context.Context, opts ...grpc.CallOption) (Hello_StreamCallStreamReturnClient, error)
}

HelloClient is the client API for Hello service.

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

func NewHelloClient

func NewHelloClient(cc grpc.ClientConnInterface) HelloClient

type HelloServer

type HelloServer interface {
	UnaryCallUnaryReturn(context.Context, *Greeting) (*Greeting, error)
	UnaryCallStreamReturn(*Greeting, Hello_UnaryCallStreamReturnServer) error
	StreamCallUnaryReturn(Hello_StreamCallUnaryReturnServer) error
	StreamCallStreamReturn(Hello_StreamCallStreamReturnServer) error
}

HelloServer is the server API for Hello service.

type Hello_StreamCallStreamReturnClient

type Hello_StreamCallStreamReturnClient interface {
	Send(*Greeting) error
	Recv() (*Greeting, error)
	grpc.ClientStream
}

type Hello_StreamCallStreamReturnServer

type Hello_StreamCallStreamReturnServer interface {
	Send(*Greeting) error
	Recv() (*Greeting, error)
	grpc.ServerStream
}

type Hello_StreamCallUnaryReturnClient

type Hello_StreamCallUnaryReturnClient interface {
	Send(*Greeting) error
	CloseAndRecv() (*Greeting, error)
	grpc.ClientStream
}

type Hello_StreamCallUnaryReturnServer

type Hello_StreamCallUnaryReturnServer interface {
	SendAndClose(*Greeting) error
	Recv() (*Greeting, error)
	grpc.ServerStream
}

type Hello_UnaryCallStreamReturnClient

type Hello_UnaryCallStreamReturnClient interface {
	Recv() (*Greeting, error)
	grpc.ClientStream
}

type Hello_UnaryCallStreamReturnServer

type Hello_UnaryCallStreamReturnServer interface {
	Send(*Greeting) error
	grpc.ServerStream
}

type UnimplementedHelloServer

type UnimplementedHelloServer struct {
}

UnimplementedHelloServer can be embedded to have forward compatible implementations.

func (*UnimplementedHelloServer) StreamCallStreamReturn

func (*UnimplementedHelloServer) StreamCallUnaryReturn

func (*UnimplementedHelloServer) UnaryCallStreamReturn

func (*UnimplementedHelloServer) UnaryCallUnaryReturn

func (*UnimplementedHelloServer) UnaryCallUnaryReturn(ctx context.Context, req *Greeting) (*Greeting, error)

Jump to

Keyboard shortcuts

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