protos

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_grpc_protos_greeting_proto protoreflect.FileDescriptor
View Source
var Greeting_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protos.Greeting",
	HandlerType: (*GreetingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetList",
			Handler:    _Greeting_GetList_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _Greeting_GetAll_Handler,
		},
		{
			MethodName: "GetDetail",
			Handler:    _Greeting_GetDetail_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Greeting_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Greeting_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Greeting_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/grpc/protos/greeting.proto",
}

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

Functions

func RegisterGreetingServer

func RegisterGreetingServer(s grpc.ServiceRegistrar, srv GreetingServer)

Types

type CreateGreetingParam

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

func (*CreateGreetingParam) Descriptor deprecated

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

Deprecated: Use CreateGreetingParam.ProtoReflect.Descriptor instead.

func (*CreateGreetingParam) ProtoMessage

func (*CreateGreetingParam) ProtoMessage()

func (*CreateGreetingParam) ProtoReflect

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

func (*CreateGreetingParam) Reset

func (x *CreateGreetingParam) Reset()

func (*CreateGreetingParam) String

func (x *CreateGreetingParam) String() string

type CreateGreetingReply

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

func (*CreateGreetingReply) Descriptor deprecated

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

Deprecated: Use CreateGreetingReply.ProtoReflect.Descriptor instead.

func (*CreateGreetingReply) ProtoMessage

func (*CreateGreetingReply) ProtoMessage()

func (*CreateGreetingReply) ProtoReflect

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

func (*CreateGreetingReply) Reset

func (x *CreateGreetingReply) Reset()

func (*CreateGreetingReply) String

func (x *CreateGreetingReply) String() string

type DeleteGreetingParam

type DeleteGreetingParam struct {
	Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGreetingParam) Descriptor deprecated

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

Deprecated: Use DeleteGreetingParam.ProtoReflect.Descriptor instead.

func (*DeleteGreetingParam) GetId

func (x *DeleteGreetingParam) GetId() int64

func (*DeleteGreetingParam) ProtoMessage

func (*DeleteGreetingParam) ProtoMessage()

func (*DeleteGreetingParam) ProtoReflect

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

func (*DeleteGreetingParam) Reset

func (x *DeleteGreetingParam) Reset()

func (*DeleteGreetingParam) String

func (x *DeleteGreetingParam) String() string

type DeleteGreetingReply

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

func (*DeleteGreetingReply) Descriptor deprecated

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

Deprecated: Use DeleteGreetingReply.ProtoReflect.Descriptor instead.

func (*DeleteGreetingReply) ProtoMessage

func (*DeleteGreetingReply) ProtoMessage()

func (*DeleteGreetingReply) ProtoReflect

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

func (*DeleteGreetingReply) Reset

func (x *DeleteGreetingReply) Reset()

func (*DeleteGreetingReply) String

func (x *DeleteGreetingReply) String() string

type GetGreetingAllParam

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

func (*GetGreetingAllParam) Descriptor deprecated

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

Deprecated: Use GetGreetingAllParam.ProtoReflect.Descriptor instead.

func (*GetGreetingAllParam) ProtoMessage

func (*GetGreetingAllParam) ProtoMessage()

func (*GetGreetingAllParam) ProtoReflect

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

func (*GetGreetingAllParam) Reset

func (x *GetGreetingAllParam) Reset()

func (*GetGreetingAllParam) String

func (x *GetGreetingAllParam) String() string

type GetGreetingAllReply

type GetGreetingAllReply struct {
	Item []*GetGreetingAllReply_List `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGreetingAllReply) Descriptor deprecated

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

Deprecated: Use GetGreetingAllReply.ProtoReflect.Descriptor instead.

func (*GetGreetingAllReply) GetItem

func (*GetGreetingAllReply) ProtoMessage

func (*GetGreetingAllReply) ProtoMessage()

func (*GetGreetingAllReply) ProtoReflect

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

func (*GetGreetingAllReply) Reset

func (x *GetGreetingAllReply) Reset()

func (*GetGreetingAllReply) String

func (x *GetGreetingAllReply) String() string

type GetGreetingAllReply_List

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

func (*GetGreetingAllReply_List) Descriptor deprecated

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

Deprecated: Use GetGreetingAllReply_List.ProtoReflect.Descriptor instead.

func (*GetGreetingAllReply_List) ProtoMessage

func (*GetGreetingAllReply_List) ProtoMessage()

func (*GetGreetingAllReply_List) ProtoReflect

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

func (*GetGreetingAllReply_List) Reset

func (x *GetGreetingAllReply_List) Reset()

func (*GetGreetingAllReply_List) String

func (x *GetGreetingAllReply_List) String() string

type GetGreetingDetailParam

type GetGreetingDetailParam struct {
	Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGreetingDetailParam) Descriptor deprecated

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

Deprecated: Use GetGreetingDetailParam.ProtoReflect.Descriptor instead.

func (*GetGreetingDetailParam) GetId

func (x *GetGreetingDetailParam) GetId() int64

func (*GetGreetingDetailParam) ProtoMessage

func (*GetGreetingDetailParam) ProtoMessage()

func (*GetGreetingDetailParam) ProtoReflect

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

func (*GetGreetingDetailParam) Reset

func (x *GetGreetingDetailParam) Reset()

func (*GetGreetingDetailParam) String

func (x *GetGreetingDetailParam) String() string

type GetGreetingDetailReply

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

func (*GetGreetingDetailReply) Descriptor deprecated

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

Deprecated: Use GetGreetingDetailReply.ProtoReflect.Descriptor instead.

func (*GetGreetingDetailReply) ProtoMessage

func (*GetGreetingDetailReply) ProtoMessage()

func (*GetGreetingDetailReply) ProtoReflect

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

func (*GetGreetingDetailReply) Reset

func (x *GetGreetingDetailReply) Reset()

func (*GetGreetingDetailReply) String

func (x *GetGreetingDetailReply) String() string

type GetGreetingListParam

type GetGreetingListParam struct {
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"`
	PageSize  int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGreetingListParam) Descriptor deprecated

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

Deprecated: Use GetGreetingListParam.ProtoReflect.Descriptor instead.

func (*GetGreetingListParam) GetPageIndex

func (x *GetGreetingListParam) GetPageIndex() int64

func (*GetGreetingListParam) GetPageSize

func (x *GetGreetingListParam) GetPageSize() int64

func (*GetGreetingListParam) ProtoMessage

func (*GetGreetingListParam) ProtoMessage()

func (*GetGreetingListParam) ProtoReflect

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

func (*GetGreetingListParam) Reset

func (x *GetGreetingListParam) Reset()

func (*GetGreetingListParam) String

func (x *GetGreetingListParam) String() string

type GetGreetingListReply

type GetGreetingListReply struct {
	Item  []*GetGreetingListReply_List `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"`
	Total int64                        `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGreetingListReply) Descriptor deprecated

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

Deprecated: Use GetGreetingListReply.ProtoReflect.Descriptor instead.

func (*GetGreetingListReply) GetItem

func (*GetGreetingListReply) GetTotal

func (x *GetGreetingListReply) GetTotal() int64

func (*GetGreetingListReply) ProtoMessage

func (*GetGreetingListReply) ProtoMessage()

func (*GetGreetingListReply) ProtoReflect

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

func (*GetGreetingListReply) Reset

func (x *GetGreetingListReply) Reset()

func (*GetGreetingListReply) String

func (x *GetGreetingListReply) String() string

type GetGreetingListReply_List

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

func (*GetGreetingListReply_List) Descriptor deprecated

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

Deprecated: Use GetGreetingListReply_List.ProtoReflect.Descriptor instead.

func (*GetGreetingListReply_List) ProtoMessage

func (*GetGreetingListReply_List) ProtoMessage()

func (*GetGreetingListReply_List) ProtoReflect

func (*GetGreetingListReply_List) Reset

func (x *GetGreetingListReply_List) Reset()

func (*GetGreetingListReply_List) String

func (x *GetGreetingListReply_List) String() string

type GreetingClient

GreetingClient is the client API for Greeting 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 NewGreetingClient

func NewGreetingClient(cc grpc.ClientConnInterface) GreetingClient

type GreetingServer

GreetingServer is the server API for Greeting service. All implementations should embed UnimplementedGreetingServer for forward compatibility

type UnimplementedGreetingServer

type UnimplementedGreetingServer struct {
}

UnimplementedGreetingServer should be embedded to have forward compatible implementations.

func (UnimplementedGreetingServer) Create

func (UnimplementedGreetingServer) Delete

func (UnimplementedGreetingServer) GetAll

func (UnimplementedGreetingServer) GetDetail

func (UnimplementedGreetingServer) GetList

func (UnimplementedGreetingServer) Update

type UnsafeGreetingServer

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

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

type UpdateGreetingParam

type UpdateGreetingParam struct {
	Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGreetingParam) Descriptor deprecated

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

Deprecated: Use UpdateGreetingParam.ProtoReflect.Descriptor instead.

func (*UpdateGreetingParam) GetId

func (x *UpdateGreetingParam) GetId() int64

func (*UpdateGreetingParam) ProtoMessage

func (*UpdateGreetingParam) ProtoMessage()

func (*UpdateGreetingParam) ProtoReflect

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

func (*UpdateGreetingParam) Reset

func (x *UpdateGreetingParam) Reset()

func (*UpdateGreetingParam) String

func (x *UpdateGreetingParam) String() string

type UpdateGreetingReply

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

func (*UpdateGreetingReply) Descriptor deprecated

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

Deprecated: Use UpdateGreetingReply.ProtoReflect.Descriptor instead.

func (*UpdateGreetingReply) ProtoMessage

func (*UpdateGreetingReply) ProtoMessage()

func (*UpdateGreetingReply) ProtoReflect

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

func (*UpdateGreetingReply) Reset

func (x *UpdateGreetingReply) Reset()

func (*UpdateGreetingReply) String

func (x *UpdateGreetingReply) String() string

Jump to

Keyboard shortcuts

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