v1

package
v0.0.0-...-c4f823d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserErrorReason_name = map[int32]string{
		0: "GREETER_UNSPECIFIED",
		1: "DEMO_NOT_FOUND",
	}
	UserErrorReason_value = map[string]int32{
		"GREETER_UNSPECIFIED": 0,
		"DEMO_NOT_FOUND":      1,
	}
)

Enum value maps for UserErrorReason.

View Source
var Demo_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "demo.v1.Demo",
	HandlerType: (*DemoServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams:     []grpc.StreamDesc{},
	Metadata:    "demo/v1/demo.proto",
}

Demo_ServiceDesc is the grpc.ServiceDesc for Demo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_demo_v1_demo_error_reason_proto protoreflect.FileDescriptor
View Source
var File_demo_v1_demo_proto protoreflect.FileDescriptor

Functions

func RegisterDemoServer

func RegisterDemoServer(s grpc.ServiceRegistrar, srv DemoServer)

Types

type DemoClient

type DemoClient interface {
}

DemoClient is the client API for Demo service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDemoClient

func NewDemoClient(cc grpc.ClientConnInterface) DemoClient

type DemoServer

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

DemoServer is the server API for Demo service. All implementations must embed UnimplementedDemoServer for forward compatibility

type UnimplementedDemoServer

type UnimplementedDemoServer struct {
}

UnimplementedDemoServer must be embedded to have forward compatible implementations.

type UnsafeDemoServer

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

UnsafeDemoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DemoServer will result in compilation errors.

type UserErrorReason

type UserErrorReason int32
const (
	UserErrorReason_GREETER_UNSPECIFIED UserErrorReason = 0
	UserErrorReason_DEMO_NOT_FOUND      UserErrorReason = 1
)

func (UserErrorReason) Descriptor

func (UserErrorReason) Enum

func (x UserErrorReason) Enum() *UserErrorReason

func (UserErrorReason) EnumDescriptor deprecated

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

Deprecated: Use UserErrorReason.Descriptor instead.

func (UserErrorReason) Number

func (UserErrorReason) String

func (x UserErrorReason) String() string

func (UserErrorReason) Type

Jump to

Keyboard shortcuts

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