v1

package
v0.0.0-...-52a3571 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "GEETER_UNSPECIFIED",
		1: "USER_NOT_FOUND",
	}
	ErrorReason_value = map[string]int32{
		"GEETER_UNSPECIFIED": 0,
		"USER_NOT_FOUND":     1,
	}
)

Enum value maps for ErrorReason.

View Source
var File_helloworld_v1_TestService_proto protoreflect.FileDescriptor
View Source
var File_helloworld_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_helloworld_v1_greeter_proto protoreflect.FileDescriptor
View Source
var Greeter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "helloworld.v1.Greeter",
	HandlerType: (*GreeterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _Greeter_SayHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "helloworld/v1/greeter.proto",
}

Greeter_ServiceDesc is the grpc.ServiceDesc for Greeter 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 TestService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.helloworld.v1.TestService",
	HandlerType: (*TestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTestService",
			Handler:    _TestService_CreateTestService_Handler,
		},
		{
			MethodName: "UpdateTestService",
			Handler:    _TestService_UpdateTestService_Handler,
		},
		{
			MethodName: "DeleteTestService",
			Handler:    _TestService_DeleteTestService_Handler,
		},
		{
			MethodName: "GetTestService",
			Handler:    _TestService_GetTestService_Handler,
		},
		{
			MethodName: "ListTestService",
			Handler:    _TestService_ListTestService_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "helloworld/v1/TestService.proto",
}

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

Functions

func RegisterGreeterHTTPServer

func RegisterGreeterHTTPServer(s *http.Server, srv GreeterHTTPServer)

func RegisterGreeterServer

func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer)

func RegisterTestServiceServer

func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)

Types

type CreateTestServiceReply

type CreateTestServiceReply struct {
	// contains filtered or unexported fields
}

func (*CreateTestServiceReply) Descriptor deprecated

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

Deprecated: Use CreateTestServiceReply.ProtoReflect.Descriptor instead.

func (*CreateTestServiceReply) ProtoMessage

func (*CreateTestServiceReply) ProtoMessage()

func (*CreateTestServiceReply) ProtoReflect

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

func (*CreateTestServiceReply) Reset

func (x *CreateTestServiceReply) Reset()

func (*CreateTestServiceReply) String

func (x *CreateTestServiceReply) String() string

type CreateTestServiceRequest

type CreateTestServiceRequest struct {
	// contains filtered or unexported fields
}

func (*CreateTestServiceRequest) Descriptor deprecated

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

Deprecated: Use CreateTestServiceRequest.ProtoReflect.Descriptor instead.

func (*CreateTestServiceRequest) ProtoMessage

func (*CreateTestServiceRequest) ProtoMessage()

func (*CreateTestServiceRequest) ProtoReflect

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

func (*CreateTestServiceRequest) Reset

func (x *CreateTestServiceRequest) Reset()

func (*CreateTestServiceRequest) String

func (x *CreateTestServiceRequest) String() string

type DeleteTestServiceReply

type DeleteTestServiceReply struct {
	// contains filtered or unexported fields
}

func (*DeleteTestServiceReply) Descriptor deprecated

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

Deprecated: Use DeleteTestServiceReply.ProtoReflect.Descriptor instead.

func (*DeleteTestServiceReply) ProtoMessage

func (*DeleteTestServiceReply) ProtoMessage()

func (*DeleteTestServiceReply) ProtoReflect

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

func (*DeleteTestServiceReply) Reset

func (x *DeleteTestServiceReply) Reset()

func (*DeleteTestServiceReply) String

func (x *DeleteTestServiceReply) String() string

type DeleteTestServiceRequest

type DeleteTestServiceRequest struct {
	// contains filtered or unexported fields
}

func (*DeleteTestServiceRequest) Descriptor deprecated

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

Deprecated: Use DeleteTestServiceRequest.ProtoReflect.Descriptor instead.

func (*DeleteTestServiceRequest) ProtoMessage

func (*DeleteTestServiceRequest) ProtoMessage()

func (*DeleteTestServiceRequest) ProtoReflect

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

func (*DeleteTestServiceRequest) Reset

func (x *DeleteTestServiceRequest) Reset()

func (*DeleteTestServiceRequest) String

func (x *DeleteTestServiceRequest) String() string

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_GEETER_UNSPECIFIED ErrorReason = 0
	ErrorReason_USER_NOT_FOUND     ErrorReason = 1
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GetTestServiceReply

type GetTestServiceReply struct {
	// contains filtered or unexported fields
}

func (*GetTestServiceReply) Descriptor deprecated

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

Deprecated: Use GetTestServiceReply.ProtoReflect.Descriptor instead.

func (*GetTestServiceReply) ProtoMessage

func (*GetTestServiceReply) ProtoMessage()

func (*GetTestServiceReply) ProtoReflect

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

func (*GetTestServiceReply) Reset

func (x *GetTestServiceReply) Reset()

func (*GetTestServiceReply) String

func (x *GetTestServiceReply) String() string

type GetTestServiceRequest

type GetTestServiceRequest struct {
	// contains filtered or unexported fields
}

func (*GetTestServiceRequest) Descriptor deprecated

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

Deprecated: Use GetTestServiceRequest.ProtoReflect.Descriptor instead.

func (*GetTestServiceRequest) ProtoMessage

func (*GetTestServiceRequest) ProtoMessage()

func (*GetTestServiceRequest) ProtoReflect

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

func (*GetTestServiceRequest) Reset

func (x *GetTestServiceRequest) Reset()

func (*GetTestServiceRequest) String

func (x *GetTestServiceRequest) String() string

type GreeterClient

type GreeterClient interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

GreeterClient is the client API for Greeter 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 NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

type GreeterHTTPClient

type GreeterHTTPClient interface {
	SayHello(ctx context.Context, req *HelloRequest, opts ...http.CallOption) (rsp *HelloReply, err error)
}

func NewGreeterHTTPClient

func NewGreeterHTTPClient(client *http.Client) GreeterHTTPClient

type GreeterHTTPClientImpl

type GreeterHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*GreeterHTTPClientImpl) SayHello

func (c *GreeterHTTPClientImpl) SayHello(ctx context.Context, in *HelloRequest, opts ...http.CallOption) (*HelloReply, error)

type GreeterHTTPServer

type GreeterHTTPServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

type GreeterServer

type GreeterServer interface {
	// Sends a greeting
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
	// contains filtered or unexported methods
}

GreeterServer is the server API for Greeter service. All implementations must embed UnimplementedGreeterServer for forward compatibility

type HelloReply

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

The response message containing the greetings

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
}

The request message containing the user's name.

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 ListTestServiceReply

type ListTestServiceReply struct {
	// contains filtered or unexported fields
}

func (*ListTestServiceReply) Descriptor deprecated

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

Deprecated: Use ListTestServiceReply.ProtoReflect.Descriptor instead.

func (*ListTestServiceReply) ProtoMessage

func (*ListTestServiceReply) ProtoMessage()

func (*ListTestServiceReply) ProtoReflect

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

func (*ListTestServiceReply) Reset

func (x *ListTestServiceReply) Reset()

func (*ListTestServiceReply) String

func (x *ListTestServiceReply) String() string

type ListTestServiceRequest

type ListTestServiceRequest struct {
	// contains filtered or unexported fields
}

func (*ListTestServiceRequest) Descriptor deprecated

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

Deprecated: Use ListTestServiceRequest.ProtoReflect.Descriptor instead.

func (*ListTestServiceRequest) ProtoMessage

func (*ListTestServiceRequest) ProtoMessage()

func (*ListTestServiceRequest) ProtoReflect

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

func (*ListTestServiceRequest) Reset

func (x *ListTestServiceRequest) Reset()

func (*ListTestServiceRequest) String

func (x *ListTestServiceRequest) String() string

type TestServiceClient

type TestServiceClient interface {
	CreateTestService(ctx context.Context, in *CreateTestServiceRequest, opts ...grpc.CallOption) (*CreateTestServiceReply, error)
	UpdateTestService(ctx context.Context, in *UpdateTestServiceRequest, opts ...grpc.CallOption) (*UpdateTestServiceReply, error)
	DeleteTestService(ctx context.Context, in *DeleteTestServiceRequest, opts ...grpc.CallOption) (*DeleteTestServiceReply, error)
	GetTestService(ctx context.Context, in *GetTestServiceRequest, opts ...grpc.CallOption) (*GetTestServiceReply, error)
	ListTestService(ctx context.Context, in *ListTestServiceRequest, opts ...grpc.CallOption) (*ListTestServiceReply, error)
}

TestServiceClient is the client API for TestService 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.

type TestServiceServer

type TestServiceServer interface {
	CreateTestService(context.Context, *CreateTestServiceRequest) (*CreateTestServiceReply, error)
	UpdateTestService(context.Context, *UpdateTestServiceRequest) (*UpdateTestServiceReply, error)
	DeleteTestService(context.Context, *DeleteTestServiceRequest) (*DeleteTestServiceReply, error)
	GetTestService(context.Context, *GetTestServiceRequest) (*GetTestServiceReply, error)
	ListTestService(context.Context, *ListTestServiceRequest) (*ListTestServiceReply, error)
	// contains filtered or unexported methods
}

TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer must be embedded to have forward compatible implementations.

func (UnimplementedGreeterServer) SayHello

type UnimplementedTestServiceServer

type UnimplementedTestServiceServer struct {
}

UnimplementedTestServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServiceServer) CreateTestService

func (UnimplementedTestServiceServer) DeleteTestService

func (UnimplementedTestServiceServer) GetTestService

func (UnimplementedTestServiceServer) ListTestService

func (UnimplementedTestServiceServer) UpdateTestService

type UnsafeGreeterServer

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

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

type UnsafeTestServiceServer

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

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

type UpdateTestServiceReply

type UpdateTestServiceReply struct {
	// contains filtered or unexported fields
}

func (*UpdateTestServiceReply) Descriptor deprecated

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

Deprecated: Use UpdateTestServiceReply.ProtoReflect.Descriptor instead.

func (*UpdateTestServiceReply) ProtoMessage

func (*UpdateTestServiceReply) ProtoMessage()

func (*UpdateTestServiceReply) ProtoReflect

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

func (*UpdateTestServiceReply) Reset

func (x *UpdateTestServiceReply) Reset()

func (*UpdateTestServiceReply) String

func (x *UpdateTestServiceReply) String() string

type UpdateTestServiceRequest

type UpdateTestServiceRequest struct {
	// contains filtered or unexported fields
}

func (*UpdateTestServiceRequest) Descriptor deprecated

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

Deprecated: Use UpdateTestServiceRequest.ProtoReflect.Descriptor instead.

func (*UpdateTestServiceRequest) ProtoMessage

func (*UpdateTestServiceRequest) ProtoMessage()

func (*UpdateTestServiceRequest) ProtoReflect

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

func (*UpdateTestServiceRequest) Reset

func (x *UpdateTestServiceRequest) Reset()

func (*UpdateTestServiceRequest) String

func (x *UpdateTestServiceRequest) String() string

Jump to

Keyboard shortcuts

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