helloword

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Reason_name = map[int32]string{
		0: "ERROR_REASON_UNSPECIFIED",
	}
	Reason_value = map[string]int32{
		"ERROR_REASON_UNSPECIFIED": 0,
	}
)

Enum value maps for Reason.

View Source
var File_helloword_helloworld_proto protoreflect.FileDescriptor
View Source
var File_helloword_reason_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GreeterClient

type GreeterClient interface {
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
	SayHelloStream(context.Context) (GreeterSayHelloStreamClient, error)
	SayHelloClientStream(context.Context) (GreeterSayHelloClientStreamClient, error)
	SayHelloServerStream(context.Context, *HelloRequest) (GreeterSayHelloServerStreamClient, error)
}

type GreeterSayHelloClientStreamClient

type GreeterSayHelloClientStreamClient interface {
	Send(*HelloRequest) error
	types.ClientStream
}

type GreeterSayHelloClientStreamServer

type GreeterSayHelloClientStreamServer interface {
	SendAndClose(*HelloReply) error
	Recv() (*HelloRequest, error)
	types.ServerStream
}

type GreeterSayHelloServerStreamClient

type GreeterSayHelloServerStreamClient interface {
	CloseAndRecv() (*HelloReply, error)
	Recv() (*HelloReply, error)
	types.ClientStream
}

type GreeterSayHelloServerStreamServer

type GreeterSayHelloServerStreamServer interface {
	Send(*HelloReply) error
	types.ServerStream
}

type GreeterSayHelloStreamClient

type GreeterSayHelloStreamClient interface {
	Send(*HelloRequest) error
	Recv() (*HelloReply, error)
	types.ClientStream
}

type GreeterSayHelloStreamServer

type GreeterSayHelloStreamServer interface {
	Send(*HelloReply) error
	Recv() (*HelloRequest, error)
	types.ServerStream
}

type GreeterServer

type GreeterServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
	SayHelloStream(GreeterSayHelloStreamServer) error
	SayHelloClientStream(GreeterSayHelloClientStreamServer) error
	SayHelloServerStream(*HelloRequest, GreeterSayHelloServerStreamServer) error
	UnsafeGreeterServer
}

type HelloReply

type HelloReply struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloReply) Descriptor deprecated

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

Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.

func (*HelloReply) GetMessage

func (x *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) ProtoReflect

func (x *HelloReply) ProtoReflect() protoreflect.Message

func (*HelloReply) Reset

func (x *HelloReply) Reset()

func (*HelloReply) String

func (x *HelloReply) String() string

type HelloRequest

type HelloRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

func (x *HelloRequest) ProtoReflect() protoreflect.Message

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type Reason

type Reason int32
const (
	// Do not use this default value.
	Reason_ERROR_REASON_UNSPECIFIED Reason = 0
)

func (Reason) Descriptor

func (Reason) Descriptor() protoreflect.EnumDescriptor

func (Reason) Domain

func (r Reason) Domain() string

func (Reason) Enum

func (x Reason) Enum() *Reason

func (Reason) EnumDescriptor deprecated

func (Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use Reason.Descriptor instead.

func (Reason) Number

func (x Reason) Number() protoreflect.EnumNumber

func (Reason) Reason

func (r Reason) Reason() string

func (Reason) String

func (x Reason) String() string

func (Reason) Type

func (Reason) Type() protoreflect.EnumType

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer must be embedded to have forward compatible implementations.

func (UnimplementedGreeterServer) SayHello

func (UnimplementedGreeterServer) SayHelloClientStream

func (UnimplementedGreeterServer) SayHelloServerStream

func (UnimplementedGreeterServer) SayHelloStream

type UnsafeGreeterServer

type UnsafeGreeterServer interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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