Documentation ¶
Index ¶
- Variables
- func RegisterFooServiceServer(s grpc.ServiceRegistrar, srv FooServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetApiVersion() string
- func (x *CreateRequest) GetFoo() *Foo
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetApiVersion() string
- func (x *CreateResponse) GetId() int64
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetApiVersion() string
- func (x *DeleteRequest) GetId() int64
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResponse) GetApiVersion() string
- func (x *DeleteResponse) GetCount() int64
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- type Foo
- func (*Foo) Descriptor() ([]byte, []int)deprecated
- func (x *Foo) GetDesc() string
- func (x *Foo) GetId() int64
- func (x *Foo) GetSysFields() *SystemFields
- func (x *Foo) GetTitle() string
- func (*Foo) ProtoMessage()
- func (x *Foo) ProtoReflect() protoreflect.Message
- func (x *Foo) Reset()
- func (x *Foo) String() string
- type FooServiceClient
- type FooServiceServer
- type ReadRequest
- func (*ReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadRequest) GetApiVersion() string
- func (x *ReadRequest) GetId() int64
- func (*ReadRequest) ProtoMessage()
- func (x *ReadRequest) ProtoReflect() protoreflect.Message
- func (x *ReadRequest) Reset()
- func (x *ReadRequest) String() string
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse) GetApiVersion() string
- func (x *ReadResponse) GetFoo() *Foo
- func (*ReadResponse) ProtoMessage()
- func (x *ReadResponse) ProtoReflect() protoreflect.Message
- func (x *ReadResponse) Reset()
- func (x *ReadResponse) String() string
- type SystemFields
- func (*SystemFields) Descriptor() ([]byte, []int)deprecated
- func (x *SystemFields) GetCreatedAt() *timestamppb.Timestamp
- func (x *SystemFields) GetCreatedBy() string
- func (x *SystemFields) GetUpdatedAt() *timestamppb.Timestamp
- func (x *SystemFields) GetUpdatedBy() string
- func (*SystemFields) ProtoMessage()
- func (x *SystemFields) ProtoReflect() protoreflect.Message
- func (x *SystemFields) Reset()
- func (x *SystemFields) String() string
- type UnimplementedFooServiceServer
- func (UnimplementedFooServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedFooServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedFooServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
- func (UnimplementedFooServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeFooServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetApiVersion() string
- func (x *UpdateRequest) GetFoo() *Foo
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetApiVersion() string
- func (x *UpdateResponse) GetCount() int64
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_proto_v1_foo_service_proto protoreflect.FileDescriptor
var FooService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.FooService", HandlerType: (*FooServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _FooService_Create_Handler, }, { MethodName: "Read", Handler: _FooService_Read_Handler, }, { MethodName: "Update", Handler: _FooService_Update_Handler, }, { MethodName: "Delete", Handler: _FooService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/proto/v1/foo-service.proto", }
FooService_ServiceDesc is the grpc.ServiceDesc for FooService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFooServiceServer ¶
func RegisterFooServiceServer(s grpc.ServiceRegistrar, srv FooServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Foo *Foo `protobuf:"bytes,2,opt,name=foo,proto3" json:"foo,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetApiVersion ¶
func (x *CreateRequest) GetApiVersion() string
func (*CreateRequest) GetFoo ¶
func (x *CreateRequest) GetFoo() *Foo
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetApiVersion ¶
func (x *CreateResponse) GetApiVersion() string
func (*CreateResponse) GetId ¶
func (x *CreateResponse) GetId() int64
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetApiVersion ¶
func (x *DeleteRequest) GetApiVersion() string
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() int64
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetApiVersion ¶
func (x *DeleteResponse) GetApiVersion() string
func (*DeleteResponse) GetCount ¶
func (x *DeleteResponse) GetCount() int64
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type Foo ¶
type Foo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` SysFields *SystemFields `protobuf:"bytes,4,opt,name=sys_fields,json=sysFields,proto3" json:"sys_fields,omitempty"` // contains filtered or unexported fields }
func (*Foo) Descriptor
deprecated
func (*Foo) GetSysFields ¶
func (x *Foo) GetSysFields() *SystemFields
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) ProtoReflect ¶
func (x *Foo) ProtoReflect() protoreflect.Message
type FooServiceClient ¶
type FooServiceClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
FooServiceClient is the client API for FooService 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 NewFooServiceClient ¶
func NewFooServiceClient(cc grpc.ClientConnInterface) FooServiceClient
type FooServiceServer ¶
type FooServiceServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Read(context.Context, *ReadRequest) (*ReadResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) }
FooServiceServer is the server API for FooService service. All implementations should embed UnimplementedFooServiceServer for forward compatibility
type ReadRequest ¶
type ReadRequest struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetApiVersion ¶
func (x *ReadRequest) GetApiVersion() string
func (*ReadRequest) GetId ¶
func (x *ReadRequest) GetId() int64
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Foo *Foo `protobuf:"bytes,2,opt,name=foo,proto3" json:"foo,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetApiVersion ¶
func (x *ReadResponse) GetApiVersion() string
func (*ReadResponse) GetFoo ¶
func (x *ReadResponse) GetFoo() *Foo
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
type SystemFields ¶
type SystemFields struct { CreatedBy string `protobuf:"bytes,1,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedBy string `protobuf:"bytes,2,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*SystemFields) Descriptor
deprecated
func (*SystemFields) Descriptor() ([]byte, []int)
Deprecated: Use SystemFields.ProtoReflect.Descriptor instead.
func (*SystemFields) GetCreatedAt ¶
func (x *SystemFields) GetCreatedAt() *timestamppb.Timestamp
func (*SystemFields) GetCreatedBy ¶
func (x *SystemFields) GetCreatedBy() string
func (*SystemFields) GetUpdatedAt ¶
func (x *SystemFields) GetUpdatedAt() *timestamppb.Timestamp
func (*SystemFields) GetUpdatedBy ¶
func (x *SystemFields) GetUpdatedBy() string
func (*SystemFields) ProtoMessage ¶
func (*SystemFields) ProtoMessage()
func (*SystemFields) ProtoReflect ¶
func (x *SystemFields) ProtoReflect() protoreflect.Message
func (*SystemFields) Reset ¶
func (x *SystemFields) Reset()
func (*SystemFields) String ¶
func (x *SystemFields) String() string
type UnimplementedFooServiceServer ¶
type UnimplementedFooServiceServer struct { }
UnimplementedFooServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFooServiceServer) Create ¶
func (UnimplementedFooServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedFooServiceServer) Delete ¶
func (UnimplementedFooServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedFooServiceServer) Read ¶
func (UnimplementedFooServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedFooServiceServer) Update ¶
func (UnimplementedFooServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeFooServiceServer ¶
type UnsafeFooServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFooServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FooServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Foo *Foo `protobuf:"bytes,2,opt,name=foo,proto3" json:"foo,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetApiVersion ¶
func (x *UpdateRequest) GetApiVersion() string
func (*UpdateRequest) GetFoo ¶
func (x *UpdateRequest) GetFoo() *Foo
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetApiVersion ¶
func (x *UpdateResponse) GetApiVersion() string
func (*UpdateResponse) GetCount ¶
func (x *UpdateResponse) GetCount() int64
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string