Documentation
¶
Index ¶
- Variables
- func RegisterBusinessListServiceServer(s grpc.ServiceRegistrar, srv BusinessListServiceServer)
- type Business
- func (*Business) Descriptor() ([]byte, []int)deprecated
- func (x *Business) GetAccountName() string
- func (x *Business) GetNickName() string
- func (x *Business) GetRoles() []string
- func (x *Business) GetUuid() string
- func (*Business) ProtoMessage()
- func (x *Business) ProtoReflect() protoreflect.Message
- func (x *Business) Reset()
- func (x *Business) String() string
- type BusinessListAsClaimRequest
- func (*BusinessListAsClaimRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BusinessListAsClaimRequest) GetUserId() string
- func (*BusinessListAsClaimRequest) ProtoMessage()
- func (x *BusinessListAsClaimRequest) ProtoReflect() protoreflect.Message
- func (x *BusinessListAsClaimRequest) Reset()
- func (x *BusinessListAsClaimRequest) String() string
- type BusinessListAsClaimResult
- func (*BusinessListAsClaimResult) Descriptor() ([]byte, []int)deprecated
- func (x *BusinessListAsClaimResult) GetBusiness() []*Business
- func (*BusinessListAsClaimResult) ProtoMessage()
- func (x *BusinessListAsClaimResult) ProtoReflect() protoreflect.Message
- func (x *BusinessListAsClaimResult) Reset()
- func (x *BusinessListAsClaimResult) String() string
- type BusinessListServiceClient
- type BusinessListServiceServer
- type UnimplementedBusinessListServiceServer
- type UnsafeBusinessListServiceServer
Constants ¶
This section is empty.
Variables ¶
var BusinessListService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "business.BusinessListService", HandlerType: (*BusinessListServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListAsClaim", Handler: _BusinessListService_ListAsClaim_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "business/business_list_as_claim.proto", }
BusinessListService_ServiceDesc is the grpc.ServiceDesc for BusinessListService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_business_business_list_as_claim_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBusinessListServiceServer ¶
func RegisterBusinessListServiceServer(s grpc.ServiceRegistrar, srv BusinessListServiceServer)
Types ¶
type Business ¶
type Business struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*Business) Descriptor
deprecated
func (*Business) GetAccountName ¶
func (*Business) GetNickName ¶
func (*Business) ProtoMessage ¶
func (*Business) ProtoMessage()
func (*Business) ProtoReflect ¶
func (x *Business) ProtoReflect() protoreflect.Message
type BusinessListAsClaimRequest ¶
type BusinessListAsClaimRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*BusinessListAsClaimRequest) Descriptor
deprecated
func (*BusinessListAsClaimRequest) Descriptor() ([]byte, []int)
Deprecated: Use BusinessListAsClaimRequest.ProtoReflect.Descriptor instead.
func (*BusinessListAsClaimRequest) GetUserId ¶
func (x *BusinessListAsClaimRequest) GetUserId() string
func (*BusinessListAsClaimRequest) ProtoMessage ¶
func (*BusinessListAsClaimRequest) ProtoMessage()
func (*BusinessListAsClaimRequest) ProtoReflect ¶
func (x *BusinessListAsClaimRequest) ProtoReflect() protoreflect.Message
func (*BusinessListAsClaimRequest) Reset ¶
func (x *BusinessListAsClaimRequest) Reset()
func (*BusinessListAsClaimRequest) String ¶
func (x *BusinessListAsClaimRequest) String() string
type BusinessListAsClaimResult ¶
type BusinessListAsClaimResult struct { Business []*Business `protobuf:"bytes,1,rep,name=business,proto3" json:"business,omitempty"` // contains filtered or unexported fields }
func (*BusinessListAsClaimResult) Descriptor
deprecated
func (*BusinessListAsClaimResult) Descriptor() ([]byte, []int)
Deprecated: Use BusinessListAsClaimResult.ProtoReflect.Descriptor instead.
func (*BusinessListAsClaimResult) GetBusiness ¶
func (x *BusinessListAsClaimResult) GetBusiness() []*Business
func (*BusinessListAsClaimResult) ProtoMessage ¶
func (*BusinessListAsClaimResult) ProtoMessage()
func (*BusinessListAsClaimResult) ProtoReflect ¶
func (x *BusinessListAsClaimResult) ProtoReflect() protoreflect.Message
func (*BusinessListAsClaimResult) Reset ¶
func (x *BusinessListAsClaimResult) Reset()
func (*BusinessListAsClaimResult) String ¶
func (x *BusinessListAsClaimResult) String() string
type BusinessListServiceClient ¶
type BusinessListServiceClient interface {
ListAsClaim(ctx context.Context, in *BusinessListAsClaimRequest, opts ...grpc.CallOption) (*BusinessListAsClaimResult, error)
}
BusinessListServiceClient is the client API for BusinessListService 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 NewBusinessListServiceClient ¶
func NewBusinessListServiceClient(cc grpc.ClientConnInterface) BusinessListServiceClient
type BusinessListServiceServer ¶
type BusinessListServiceServer interface { ListAsClaim(context.Context, *BusinessListAsClaimRequest) (*BusinessListAsClaimResult, error) // contains filtered or unexported methods }
BusinessListServiceServer is the server API for BusinessListService service. All implementations must embed UnimplementedBusinessListServiceServer for forward compatibility
type UnimplementedBusinessListServiceServer ¶
type UnimplementedBusinessListServiceServer struct { }
UnimplementedBusinessListServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBusinessListServiceServer) ListAsClaim ¶
func (UnimplementedBusinessListServiceServer) ListAsClaim(context.Context, *BusinessListAsClaimRequest) (*BusinessListAsClaimResult, error)
type UnsafeBusinessListServiceServer ¶
type UnsafeBusinessListServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBusinessListServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BusinessListServiceServer will result in compilation errors.