Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddChannelReply
- func (*AddChannelReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddChannelReply) GetId() uint32
- func (*AddChannelReply) ProtoMessage()
- func (x *AddChannelReply) ProtoReflect() protoreflect.Message
- func (x *AddChannelReply) Reset()
- func (x *AddChannelReply) String() string
- func (m *AddChannelReply) Validate() error
- func (m *AddChannelReply) ValidateAll() error
- type AddChannelReplyMultiError
- type AddChannelReplyValidationError
- func (e AddChannelReplyValidationError) Cause() error
- func (e AddChannelReplyValidationError) Error() string
- func (e AddChannelReplyValidationError) ErrorName() string
- func (e AddChannelReplyValidationError) Field() string
- func (e AddChannelReplyValidationError) Key() bool
- func (e AddChannelReplyValidationError) Reason() string
- type AddChannelRequest
- func (*AddChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddChannelRequest) GetAk() string
- func (x *AddChannelRequest) GetExtra() string
- func (x *AddChannelRequest) GetLogo() string
- func (x *AddChannelRequest) GetName() string
- func (x *AddChannelRequest) GetPlatform() string
- func (x *AddChannelRequest) GetSk() string
- func (x *AddChannelRequest) GetStatus() bool
- func (*AddChannelRequest) ProtoMessage()
- func (x *AddChannelRequest) ProtoReflect() protoreflect.Message
- func (x *AddChannelRequest) Reset()
- func (x *AddChannelRequest) String() string
- func (m *AddChannelRequest) Validate() error
- func (m *AddChannelRequest) ValidateAll() error
- type AddChannelRequestMultiError
- type AddChannelRequestValidationError
- func (e AddChannelRequestValidationError) Cause() error
- func (e AddChannelRequestValidationError) Error() string
- func (e AddChannelRequestValidationError) ErrorName() string
- func (e AddChannelRequestValidationError) Field() string
- func (e AddChannelRequestValidationError) Key() bool
- func (e AddChannelRequestValidationError) Reason() string
- type AllChannelReply
- func (*AllChannelReply) Descriptor() ([]byte, []int)deprecated
- func (x *AllChannelReply) GetList() []*Channel
- func (*AllChannelReply) ProtoMessage()
- func (x *AllChannelReply) ProtoReflect() protoreflect.Message
- func (x *AllChannelReply) Reset()
- func (x *AllChannelReply) String() string
- func (m *AllChannelReply) Validate() error
- func (m *AllChannelReply) ValidateAll() error
- type AllChannelReplyMultiError
- type AllChannelReplyValidationError
- func (e AllChannelReplyValidationError) Cause() error
- func (e AllChannelReplyValidationError) Error() string
- func (e AllChannelReplyValidationError) ErrorName() string
- func (e AllChannelReplyValidationError) Field() string
- func (e AllChannelReplyValidationError) Key() bool
- func (e AllChannelReplyValidationError) Reason() string
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)deprecated
- func (x *Channel) GetAk() string
- func (x *Channel) GetCreatedAt() uint32
- func (x *Channel) GetExtra() string
- func (x *Channel) GetId() uint32
- func (x *Channel) GetLogo() string
- func (x *Channel) GetName() string
- func (x *Channel) GetPlatform() string
- func (x *Channel) GetResource() *v1.File
- func (x *Channel) GetSk() string
- func (x *Channel) GetStatus() bool
- func (x *Channel) GetUpdatedAt() uint32
- func (*Channel) ProtoMessage()
- func (x *Channel) ProtoReflect() protoreflect.Message
- func (x *Channel) Reset()
- func (x *Channel) String() string
- func (m *Channel) Validate() error
- func (m *Channel) ValidateAll() error
- type ChannelMultiError
- type ChannelValidationError
- type DeleteChannelRequest
- func (*DeleteChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteChannelRequest) GetId() uint32
- func (*DeleteChannelRequest) ProtoMessage()
- func (x *DeleteChannelRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteChannelRequest) Reset()
- func (x *DeleteChannelRequest) String() string
- func (m *DeleteChannelRequest) Validate() error
- func (m *DeleteChannelRequest) ValidateAll() error
- type DeleteChannelRequestMultiError
- type DeleteChannelRequestValidationError
- func (e DeleteChannelRequestValidationError) Cause() error
- func (e DeleteChannelRequestValidationError) Error() string
- func (e DeleteChannelRequestValidationError) ErrorName() string
- func (e DeleteChannelRequestValidationError) Field() string
- func (e DeleteChannelRequestValidationError) Key() bool
- func (e DeleteChannelRequestValidationError) Reason() string
- type GetTypesReply
- func (*GetTypesReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetTypesReply) GetList() []*GetTypesReply_Typer
- func (*GetTypesReply) ProtoMessage()
- func (x *GetTypesReply) ProtoReflect() protoreflect.Message
- func (x *GetTypesReply) Reset()
- func (x *GetTypesReply) String() string
- func (m *GetTypesReply) Validate() error
- func (m *GetTypesReply) ValidateAll() error
- type GetTypesReplyMultiError
- type GetTypesReplyValidationError
- func (e GetTypesReplyValidationError) Cause() error
- func (e GetTypesReplyValidationError) Error() string
- func (e GetTypesReplyValidationError) ErrorName() string
- func (e GetTypesReplyValidationError) Field() string
- func (e GetTypesReplyValidationError) Key() bool
- func (e GetTypesReplyValidationError) Reason() string
- type GetTypesReply_Typer
- func (*GetTypesReply_Typer) Descriptor() ([]byte, []int)deprecated
- func (x *GetTypesReply_Typer) GetName() string
- func (x *GetTypesReply_Typer) GetPlatform() string
- func (*GetTypesReply_Typer) ProtoMessage()
- func (x *GetTypesReply_Typer) ProtoReflect() protoreflect.Message
- func (x *GetTypesReply_Typer) Reset()
- func (x *GetTypesReply_Typer) String() string
- func (m *GetTypesReply_Typer) Validate() error
- func (m *GetTypesReply_Typer) ValidateAll() error
- type GetTypesReply_TyperMultiError
- type GetTypesReply_TyperValidationError
- func (e GetTypesReply_TyperValidationError) Cause() error
- func (e GetTypesReply_TyperValidationError) Error() string
- func (e GetTypesReply_TyperValidationError) ErrorName() string
- func (e GetTypesReply_TyperValidationError) Field() string
- func (e GetTypesReply_TyperValidationError) Key() bool
- func (e GetTypesReply_TyperValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddChannel(ctx context.Context, in *AddChannelRequest, opts ...http.CallOption) (*AddChannelReply, error)
- func (c *ServiceHTTPClientImpl) AllChannel(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*AllChannelReply, error)
- func (c *ServiceHTTPClientImpl) DeleteChannel(ctx context.Context, in *DeleteChannelRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetTypes(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetTypesReply, error)
- func (c *ServiceHTTPClientImpl) UpdateChannel(ctx context.Context, in *UpdateChannelRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddChannel(context.Context, *AddChannelRequest) (*AddChannelReply, error)
- func (UnimplementedServiceServer) AllChannel(context.Context, *emptypb.Empty) (*AllChannelReply, error)
- func (UnimplementedServiceServer) DeleteChannel(context.Context, *DeleteChannelRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetTypes(context.Context, *emptypb.Empty) (*GetTypesReply, error)
- func (UnimplementedServiceServer) UpdateChannel(context.Context, *UpdateChannelRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateChannelRequest
- func (*UpdateChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateChannelRequest) GetAk() string
- func (x *UpdateChannelRequest) GetExtra() string
- func (x *UpdateChannelRequest) GetId() uint32
- func (x *UpdateChannelRequest) GetLogo() string
- func (x *UpdateChannelRequest) GetName() string
- func (x *UpdateChannelRequest) GetPlatform() string
- func (x *UpdateChannelRequest) GetSk() string
- func (x *UpdateChannelRequest) GetStatus() bool
- func (*UpdateChannelRequest) ProtoMessage()
- func (x *UpdateChannelRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateChannelRequest) Reset()
- func (x *UpdateChannelRequest) String() string
- func (m *UpdateChannelRequest) Validate() error
- func (m *UpdateChannelRequest) ValidateAll() error
- type UpdateChannelRequestMultiError
- type UpdateChannelRequestValidationError
- func (e UpdateChannelRequestValidationError) Cause() error
- func (e UpdateChannelRequestValidationError) Error() string
- func (e UpdateChannelRequestValidationError) ErrorName() string
- func (e UpdateChannelRequestValidationError) Field() string
- func (e UpdateChannelRequestValidationError) Key() bool
- func (e UpdateChannelRequestValidationError) Reason() string
Constants ¶
const ( Service_AllChannel_FullMethodName = "/channel.Service/AllChannel" Service_GetTypes_FullMethodName = "/channel.Service/GetTypes" Service_AddChannel_FullMethodName = "/channel.Service/AddChannel" Service_UpdateChannel_FullMethodName = "/channel.Service/UpdateChannel" Service_DeleteChannel_FullMethodName = "/channel.Service/DeleteChannel" )
const OperationServiceAddChannel = "/channel.Service/AddChannel"
const OperationServiceAllChannel = "/channel.Service/AllChannel"
const OperationServiceDeleteChannel = "/channel.Service/DeleteChannel"
const OperationServiceGetTypes = "/channel.Service/GetTypes"
const OperationServiceUpdateChannel = "/channel.Service/UpdateChannel"
Variables ¶
var File_user_center_channel_proto protoreflect.FileDescriptor
var File_user_center_channel_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "channel.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AllChannel", Handler: _Service_AllChannel_Handler, }, { MethodName: "GetTypes", Handler: _Service_GetTypes_Handler, }, { MethodName: "AddChannel", Handler: _Service_AddChannel_Handler, }, { MethodName: "UpdateChannel", Handler: _Service_UpdateChannel_Handler, }, { MethodName: "DeleteChannel", Handler: _Service_DeleteChannel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center_channel_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddChannelReply ¶
type AddChannelReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddChannelReply) Descriptor
deprecated
func (*AddChannelReply) Descriptor() ([]byte, []int)
Deprecated: Use AddChannelReply.ProtoReflect.Descriptor instead.
func (*AddChannelReply) GetId ¶
func (x *AddChannelReply) GetId() uint32
func (*AddChannelReply) ProtoMessage ¶
func (*AddChannelReply) ProtoMessage()
func (*AddChannelReply) ProtoReflect ¶
func (x *AddChannelReply) ProtoReflect() protoreflect.Message
func (*AddChannelReply) Reset ¶
func (x *AddChannelReply) Reset()
func (*AddChannelReply) String ¶
func (x *AddChannelReply) String() string
func (*AddChannelReply) Validate ¶
func (m *AddChannelReply) Validate() error
Validate checks the field values on AddChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AddChannelReply) ValidateAll ¶
func (m *AddChannelReply) ValidateAll() error
ValidateAll checks the field values on AddChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddChannelReplyMultiError, or nil if none found.
type AddChannelReplyMultiError ¶
type AddChannelReplyMultiError []error
AddChannelReplyMultiError is an error wrapping multiple validation errors returned by AddChannelReply.ValidateAll() if the designated constraints aren't met.
func (AddChannelReplyMultiError) AllErrors ¶
func (m AddChannelReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddChannelReplyMultiError) Error ¶
func (m AddChannelReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddChannelReplyValidationError ¶
type AddChannelReplyValidationError struct {
// contains filtered or unexported fields
}
AddChannelReplyValidationError is the validation error returned by AddChannelReply.Validate if the designated constraints aren't met.
func (AddChannelReplyValidationError) Cause ¶
func (e AddChannelReplyValidationError) Cause() error
Cause function returns cause value.
func (AddChannelReplyValidationError) Error ¶
func (e AddChannelReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddChannelReplyValidationError) ErrorName ¶
func (e AddChannelReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddChannelReplyValidationError) Field ¶
func (e AddChannelReplyValidationError) Field() string
Field function returns field value.
func (AddChannelReplyValidationError) Key ¶
func (e AddChannelReplyValidationError) Key() bool
Key function returns key value.
func (AddChannelReplyValidationError) Reason ¶
func (e AddChannelReplyValidationError) Reason() string
Reason function returns reason value.
type AddChannelRequest ¶
type AddChannelRequest struct { Logo string `protobuf:"bytes,1,opt,name=logo,proto3" json:"logo,omitempty"` Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Ak *string `protobuf:"bytes,4,opt,name=ak,proto3,oneof" json:"ak,omitempty"` Sk *string `protobuf:"bytes,5,opt,name=sk,proto3,oneof" json:"sk,omitempty"` Extra *string `protobuf:"bytes,6,opt,name=extra,proto3,oneof" json:"extra,omitempty"` Status *bool `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AddChannelRequest) Descriptor
deprecated
func (*AddChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddChannelRequest.ProtoReflect.Descriptor instead.
func (*AddChannelRequest) GetAk ¶
func (x *AddChannelRequest) GetAk() string
func (*AddChannelRequest) GetExtra ¶
func (x *AddChannelRequest) GetExtra() string
func (*AddChannelRequest) GetLogo ¶
func (x *AddChannelRequest) GetLogo() string
func (*AddChannelRequest) GetName ¶
func (x *AddChannelRequest) GetName() string
func (*AddChannelRequest) GetPlatform ¶
func (x *AddChannelRequest) GetPlatform() string
func (*AddChannelRequest) GetSk ¶
func (x *AddChannelRequest) GetSk() string
func (*AddChannelRequest) GetStatus ¶
func (x *AddChannelRequest) GetStatus() bool
func (*AddChannelRequest) ProtoMessage ¶
func (*AddChannelRequest) ProtoMessage()
func (*AddChannelRequest) ProtoReflect ¶
func (x *AddChannelRequest) ProtoReflect() protoreflect.Message
func (*AddChannelRequest) Reset ¶
func (x *AddChannelRequest) Reset()
func (*AddChannelRequest) String ¶
func (x *AddChannelRequest) String() string
func (*AddChannelRequest) Validate ¶
func (m *AddChannelRequest) Validate() error
Validate checks the field values on AddChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AddChannelRequest) ValidateAll ¶
func (m *AddChannelRequest) ValidateAll() error
ValidateAll checks the field values on AddChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddChannelRequestMultiError, or nil if none found.
type AddChannelRequestMultiError ¶
type AddChannelRequestMultiError []error
AddChannelRequestMultiError is an error wrapping multiple validation errors returned by AddChannelRequest.ValidateAll() if the designated constraints aren't met.
func (AddChannelRequestMultiError) AllErrors ¶
func (m AddChannelRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddChannelRequestMultiError) Error ¶
func (m AddChannelRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddChannelRequestValidationError ¶
type AddChannelRequestValidationError struct {
// contains filtered or unexported fields
}
AddChannelRequestValidationError is the validation error returned by AddChannelRequest.Validate if the designated constraints aren't met.
func (AddChannelRequestValidationError) Cause ¶
func (e AddChannelRequestValidationError) Cause() error
Cause function returns cause value.
func (AddChannelRequestValidationError) Error ¶
func (e AddChannelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddChannelRequestValidationError) ErrorName ¶
func (e AddChannelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddChannelRequestValidationError) Field ¶
func (e AddChannelRequestValidationError) Field() string
Field function returns field value.
func (AddChannelRequestValidationError) Key ¶
func (e AddChannelRequestValidationError) Key() bool
Key function returns key value.
func (AddChannelRequestValidationError) Reason ¶
func (e AddChannelRequestValidationError) Reason() string
Reason function returns reason value.
type AllChannelReply ¶
type AllChannelReply struct { List []*Channel `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*AllChannelReply) Descriptor
deprecated
func (*AllChannelReply) Descriptor() ([]byte, []int)
Deprecated: Use AllChannelReply.ProtoReflect.Descriptor instead.
func (*AllChannelReply) GetList ¶
func (x *AllChannelReply) GetList() []*Channel
func (*AllChannelReply) ProtoMessage ¶
func (*AllChannelReply) ProtoMessage()
func (*AllChannelReply) ProtoReflect ¶
func (x *AllChannelReply) ProtoReflect() protoreflect.Message
func (*AllChannelReply) Reset ¶
func (x *AllChannelReply) Reset()
func (*AllChannelReply) String ¶
func (x *AllChannelReply) String() string
func (*AllChannelReply) Validate ¶
func (m *AllChannelReply) Validate() error
Validate checks the field values on AllChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AllChannelReply) ValidateAll ¶
func (m *AllChannelReply) ValidateAll() error
ValidateAll checks the field values on AllChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllChannelReplyMultiError, or nil if none found.
type AllChannelReplyMultiError ¶
type AllChannelReplyMultiError []error
AllChannelReplyMultiError is an error wrapping multiple validation errors returned by AllChannelReply.ValidateAll() if the designated constraints aren't met.
func (AllChannelReplyMultiError) AllErrors ¶
func (m AllChannelReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllChannelReplyMultiError) Error ¶
func (m AllChannelReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllChannelReplyValidationError ¶
type AllChannelReplyValidationError struct {
// contains filtered or unexported fields
}
AllChannelReplyValidationError is the validation error returned by AllChannelReply.Validate if the designated constraints aren't met.
func (AllChannelReplyValidationError) Cause ¶
func (e AllChannelReplyValidationError) Cause() error
Cause function returns cause value.
func (AllChannelReplyValidationError) Error ¶
func (e AllChannelReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AllChannelReplyValidationError) ErrorName ¶
func (e AllChannelReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AllChannelReplyValidationError) Field ¶
func (e AllChannelReplyValidationError) Field() string
Field function returns field value.
func (AllChannelReplyValidationError) Key ¶
func (e AllChannelReplyValidationError) Key() bool
Key function returns key value.
func (AllChannelReplyValidationError) Reason ¶
func (e AllChannelReplyValidationError) Reason() string
Reason function returns reason value.
type Channel ¶
type Channel struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Logo string `protobuf:"bytes,2,opt,name=logo,proto3" json:"logo,omitempty"` Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Ak string `protobuf:"bytes,5,opt,name=ak,proto3" json:"ak,omitempty"` Sk string `protobuf:"bytes,6,opt,name=sk,proto3" json:"sk,omitempty"` Extra string `protobuf:"bytes,7,opt,name=extra,proto3" json:"extra,omitempty"` Status *bool `protobuf:"varint,8,opt,name=status,proto3,oneof" json:"status,omitempty"` CreatedAt uint32 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Resource *v1.File `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*Channel) Descriptor
deprecated
func (*Channel) GetCreatedAt ¶
func (*Channel) GetPlatform ¶
func (*Channel) GetResource ¶
func (*Channel) GetUpdatedAt ¶
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
func (*Channel) Validate ¶
Validate checks the field values on Channel with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Channel) ValidateAll ¶
ValidateAll checks the field values on Channel with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChannelMultiError, or nil if none found.
type ChannelMultiError ¶
type ChannelMultiError []error
ChannelMultiError is an error wrapping multiple validation errors returned by Channel.ValidateAll() if the designated constraints aren't met.
func (ChannelMultiError) AllErrors ¶
func (m ChannelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChannelMultiError) Error ¶
func (m ChannelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChannelValidationError ¶
type ChannelValidationError struct {
// contains filtered or unexported fields
}
ChannelValidationError is the validation error returned by Channel.Validate if the designated constraints aren't met.
func (ChannelValidationError) Cause ¶
func (e ChannelValidationError) Cause() error
Cause function returns cause value.
func (ChannelValidationError) Error ¶
func (e ChannelValidationError) Error() string
Error satisfies the builtin error interface
func (ChannelValidationError) ErrorName ¶
func (e ChannelValidationError) ErrorName() string
ErrorName returns error name.
func (ChannelValidationError) Field ¶
func (e ChannelValidationError) Field() string
Field function returns field value.
func (ChannelValidationError) Key ¶
func (e ChannelValidationError) Key() bool
Key function returns key value.
func (ChannelValidationError) Reason ¶
func (e ChannelValidationError) Reason() string
Reason function returns reason value.
type DeleteChannelRequest ¶
type DeleteChannelRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteChannelRequest) Descriptor
deprecated
func (*DeleteChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteChannelRequest.ProtoReflect.Descriptor instead.
func (*DeleteChannelRequest) GetId ¶
func (x *DeleteChannelRequest) GetId() uint32
func (*DeleteChannelRequest) ProtoMessage ¶
func (*DeleteChannelRequest) ProtoMessage()
func (*DeleteChannelRequest) ProtoReflect ¶
func (x *DeleteChannelRequest) ProtoReflect() protoreflect.Message
func (*DeleteChannelRequest) Reset ¶
func (x *DeleteChannelRequest) Reset()
func (*DeleteChannelRequest) String ¶
func (x *DeleteChannelRequest) String() string
func (*DeleteChannelRequest) Validate ¶
func (m *DeleteChannelRequest) Validate() error
Validate checks the field values on DeleteChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteChannelRequest) ValidateAll ¶
func (m *DeleteChannelRequest) ValidateAll() error
ValidateAll checks the field values on DeleteChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteChannelRequestMultiError, or nil if none found.
type DeleteChannelRequestMultiError ¶
type DeleteChannelRequestMultiError []error
DeleteChannelRequestMultiError is an error wrapping multiple validation errors returned by DeleteChannelRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteChannelRequestMultiError) AllErrors ¶
func (m DeleteChannelRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteChannelRequestMultiError) Error ¶
func (m DeleteChannelRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteChannelRequestValidationError ¶
type DeleteChannelRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteChannelRequestValidationError is the validation error returned by DeleteChannelRequest.Validate if the designated constraints aren't met.
func (DeleteChannelRequestValidationError) Cause ¶
func (e DeleteChannelRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteChannelRequestValidationError) Error ¶
func (e DeleteChannelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteChannelRequestValidationError) ErrorName ¶
func (e DeleteChannelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteChannelRequestValidationError) Field ¶
func (e DeleteChannelRequestValidationError) Field() string
Field function returns field value.
func (DeleteChannelRequestValidationError) Key ¶
func (e DeleteChannelRequestValidationError) Key() bool
Key function returns key value.
func (DeleteChannelRequestValidationError) Reason ¶
func (e DeleteChannelRequestValidationError) Reason() string
Reason function returns reason value.
type GetTypesReply ¶
type GetTypesReply struct { List []*GetTypesReply_Typer `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetTypesReply) Descriptor
deprecated
func (*GetTypesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetTypesReply.ProtoReflect.Descriptor instead.
func (*GetTypesReply) GetList ¶
func (x *GetTypesReply) GetList() []*GetTypesReply_Typer
func (*GetTypesReply) ProtoMessage ¶
func (*GetTypesReply) ProtoMessage()
func (*GetTypesReply) ProtoReflect ¶
func (x *GetTypesReply) ProtoReflect() protoreflect.Message
func (*GetTypesReply) Reset ¶
func (x *GetTypesReply) Reset()
func (*GetTypesReply) String ¶
func (x *GetTypesReply) String() string
func (*GetTypesReply) Validate ¶
func (m *GetTypesReply) Validate() error
Validate checks the field values on GetTypesReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetTypesReply) ValidateAll ¶
func (m *GetTypesReply) ValidateAll() error
ValidateAll checks the field values on GetTypesReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTypesReplyMultiError, or nil if none found.
type GetTypesReplyMultiError ¶
type GetTypesReplyMultiError []error
GetTypesReplyMultiError is an error wrapping multiple validation errors returned by GetTypesReply.ValidateAll() if the designated constraints aren't met.
func (GetTypesReplyMultiError) AllErrors ¶
func (m GetTypesReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTypesReplyMultiError) Error ¶
func (m GetTypesReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTypesReplyValidationError ¶
type GetTypesReplyValidationError struct {
// contains filtered or unexported fields
}
GetTypesReplyValidationError is the validation error returned by GetTypesReply.Validate if the designated constraints aren't met.
func (GetTypesReplyValidationError) Cause ¶
func (e GetTypesReplyValidationError) Cause() error
Cause function returns cause value.
func (GetTypesReplyValidationError) Error ¶
func (e GetTypesReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetTypesReplyValidationError) ErrorName ¶
func (e GetTypesReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetTypesReplyValidationError) Field ¶
func (e GetTypesReplyValidationError) Field() string
Field function returns field value.
func (GetTypesReplyValidationError) Key ¶
func (e GetTypesReplyValidationError) Key() bool
Key function returns key value.
func (GetTypesReplyValidationError) Reason ¶
func (e GetTypesReplyValidationError) Reason() string
Reason function returns reason value.
type GetTypesReply_Typer ¶
type GetTypesReply_Typer struct { Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetTypesReply_Typer) Descriptor
deprecated
func (*GetTypesReply_Typer) Descriptor() ([]byte, []int)
Deprecated: Use GetTypesReply_Typer.ProtoReflect.Descriptor instead.
func (*GetTypesReply_Typer) GetName ¶
func (x *GetTypesReply_Typer) GetName() string
func (*GetTypesReply_Typer) GetPlatform ¶
func (x *GetTypesReply_Typer) GetPlatform() string
func (*GetTypesReply_Typer) ProtoMessage ¶
func (*GetTypesReply_Typer) ProtoMessage()
func (*GetTypesReply_Typer) ProtoReflect ¶
func (x *GetTypesReply_Typer) ProtoReflect() protoreflect.Message
func (*GetTypesReply_Typer) Reset ¶
func (x *GetTypesReply_Typer) Reset()
func (*GetTypesReply_Typer) String ¶
func (x *GetTypesReply_Typer) String() string
func (*GetTypesReply_Typer) Validate ¶
func (m *GetTypesReply_Typer) Validate() error
Validate checks the field values on GetTypesReply_Typer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetTypesReply_Typer) ValidateAll ¶
func (m *GetTypesReply_Typer) ValidateAll() error
ValidateAll checks the field values on GetTypesReply_Typer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTypesReply_TyperMultiError, or nil if none found.
type GetTypesReply_TyperMultiError ¶
type GetTypesReply_TyperMultiError []error
GetTypesReply_TyperMultiError is an error wrapping multiple validation errors returned by GetTypesReply_Typer.ValidateAll() if the designated constraints aren't met.
func (GetTypesReply_TyperMultiError) AllErrors ¶
func (m GetTypesReply_TyperMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTypesReply_TyperMultiError) Error ¶
func (m GetTypesReply_TyperMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTypesReply_TyperValidationError ¶
type GetTypesReply_TyperValidationError struct {
// contains filtered or unexported fields
}
GetTypesReply_TyperValidationError is the validation error returned by GetTypesReply_Typer.Validate if the designated constraints aren't met.
func (GetTypesReply_TyperValidationError) Cause ¶
func (e GetTypesReply_TyperValidationError) Cause() error
Cause function returns cause value.
func (GetTypesReply_TyperValidationError) Error ¶
func (e GetTypesReply_TyperValidationError) Error() string
Error satisfies the builtin error interface
func (GetTypesReply_TyperValidationError) ErrorName ¶
func (e GetTypesReply_TyperValidationError) ErrorName() string
ErrorName returns error name.
func (GetTypesReply_TyperValidationError) Field ¶
func (e GetTypesReply_TyperValidationError) Field() string
Field function returns field value.
func (GetTypesReply_TyperValidationError) Key ¶
func (e GetTypesReply_TyperValidationError) Key() bool
Key function returns key value.
func (GetTypesReply_TyperValidationError) Reason ¶
func (e GetTypesReply_TyperValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // AllChannel 获取全部渠道信息 AllChannel(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AllChannelReply, error) // AllChannel 获取全部渠道信息 GetTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTypesReply, error) // AddChannel 添加渠道信息 AddChannel(ctx context.Context, in *AddChannelRequest, opts ...grpc.CallOption) (*AddChannelReply, error) // UpdateChannel 更新渠道信息 UpdateChannel(ctx context.Context, in *UpdateChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteChannel 删除渠道信息 DeleteChannel(ctx context.Context, in *DeleteChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddChannel(ctx context.Context, req *AddChannelRequest, opts ...http.CallOption) (rsp *AddChannelReply, err error) AllChannel(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *AllChannelReply, err error) DeleteChannel(ctx context.Context, req *DeleteChannelRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetTypes(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetTypesReply, err error) UpdateChannel(ctx context.Context, req *UpdateChannelRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddChannel ¶
func (c *ServiceHTTPClientImpl) AddChannel(ctx context.Context, in *AddChannelRequest, opts ...http.CallOption) (*AddChannelReply, error)
func (*ServiceHTTPClientImpl) AllChannel ¶
func (c *ServiceHTTPClientImpl) AllChannel(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*AllChannelReply, error)
func (*ServiceHTTPClientImpl) DeleteChannel ¶
func (c *ServiceHTTPClientImpl) DeleteChannel(ctx context.Context, in *DeleteChannelRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetTypes ¶
func (c *ServiceHTTPClientImpl) GetTypes(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetTypesReply, error)
func (*ServiceHTTPClientImpl) UpdateChannel ¶
func (c *ServiceHTTPClientImpl) UpdateChannel(ctx context.Context, in *UpdateChannelRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddChannel AddChannel 添加渠道信息 AddChannel(context.Context, *AddChannelRequest) (*AddChannelReply, error) // AllChannel AllChannel 获取全部渠道信息 AllChannel(context.Context, *emptypb.Empty) (*AllChannelReply, error) // DeleteChannel DeleteChannel 删除渠道信息 DeleteChannel(context.Context, *DeleteChannelRequest) (*emptypb.Empty, error) // GetTypes AllChannel 获取全部渠道信息 GetTypes(context.Context, *emptypb.Empty) (*GetTypesReply, error) // UpdateChannel UpdateChannel 更新渠道信息 UpdateChannel(context.Context, *UpdateChannelRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // AllChannel 获取全部渠道信息 AllChannel(context.Context, *emptypb.Empty) (*AllChannelReply, error) // AllChannel 获取全部渠道信息 GetTypes(context.Context, *emptypb.Empty) (*GetTypesReply, error) // AddChannel 添加渠道信息 AddChannel(context.Context, *AddChannelRequest) (*AddChannelReply, error) // UpdateChannel 更新渠道信息 UpdateChannel(context.Context, *UpdateChannelRequest) (*emptypb.Empty, error) // DeleteChannel 删除渠道信息 DeleteChannel(context.Context, *DeleteChannelRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddChannel ¶
func (UnimplementedServiceServer) AddChannel(context.Context, *AddChannelRequest) (*AddChannelReply, error)
func (UnimplementedServiceServer) AllChannel ¶
func (UnimplementedServiceServer) AllChannel(context.Context, *emptypb.Empty) (*AllChannelReply, error)
func (UnimplementedServiceServer) DeleteChannel ¶
func (UnimplementedServiceServer) DeleteChannel(context.Context, *DeleteChannelRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetTypes ¶
func (UnimplementedServiceServer) GetTypes(context.Context, *emptypb.Empty) (*GetTypesReply, error)
func (UnimplementedServiceServer) UpdateChannel ¶
func (UnimplementedServiceServer) UpdateChannel(context.Context, *UpdateChannelRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateChannelRequest ¶
type UpdateChannelRequest struct { Id uint32 `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"` Logo string `protobuf:"bytes,1,opt,name=logo,proto3" json:"logo,omitempty"` Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Ak *string `protobuf:"bytes,4,opt,name=ak,proto3,oneof" json:"ak,omitempty"` Sk *string `protobuf:"bytes,5,opt,name=sk,proto3,oneof" json:"sk,omitempty"` Extra *string `protobuf:"bytes,6,opt,name=extra,proto3,oneof" json:"extra,omitempty"` Status *bool `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateChannelRequest) Descriptor
deprecated
func (*UpdateChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateChannelRequest.ProtoReflect.Descriptor instead.
func (*UpdateChannelRequest) GetAk ¶
func (x *UpdateChannelRequest) GetAk() string
func (*UpdateChannelRequest) GetExtra ¶
func (x *UpdateChannelRequest) GetExtra() string
func (*UpdateChannelRequest) GetId ¶
func (x *UpdateChannelRequest) GetId() uint32
func (*UpdateChannelRequest) GetLogo ¶
func (x *UpdateChannelRequest) GetLogo() string
func (*UpdateChannelRequest) GetName ¶
func (x *UpdateChannelRequest) GetName() string
func (*UpdateChannelRequest) GetPlatform ¶
func (x *UpdateChannelRequest) GetPlatform() string
func (*UpdateChannelRequest) GetSk ¶
func (x *UpdateChannelRequest) GetSk() string
func (*UpdateChannelRequest) GetStatus ¶
func (x *UpdateChannelRequest) GetStatus() bool
func (*UpdateChannelRequest) ProtoMessage ¶
func (*UpdateChannelRequest) ProtoMessage()
func (*UpdateChannelRequest) ProtoReflect ¶
func (x *UpdateChannelRequest) ProtoReflect() protoreflect.Message
func (*UpdateChannelRequest) Reset ¶
func (x *UpdateChannelRequest) Reset()
func (*UpdateChannelRequest) String ¶
func (x *UpdateChannelRequest) String() string
func (*UpdateChannelRequest) Validate ¶
func (m *UpdateChannelRequest) Validate() error
Validate checks the field values on UpdateChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateChannelRequest) ValidateAll ¶
func (m *UpdateChannelRequest) ValidateAll() error
ValidateAll checks the field values on UpdateChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateChannelRequestMultiError, or nil if none found.
type UpdateChannelRequestMultiError ¶
type UpdateChannelRequestMultiError []error
UpdateChannelRequestMultiError is an error wrapping multiple validation errors returned by UpdateChannelRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateChannelRequestMultiError) AllErrors ¶
func (m UpdateChannelRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateChannelRequestMultiError) Error ¶
func (m UpdateChannelRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateChannelRequestValidationError ¶
type UpdateChannelRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateChannelRequestValidationError is the validation error returned by UpdateChannelRequest.Validate if the designated constraints aren't met.
func (UpdateChannelRequestValidationError) Cause ¶
func (e UpdateChannelRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateChannelRequestValidationError) Error ¶
func (e UpdateChannelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateChannelRequestValidationError) ErrorName ¶
func (e UpdateChannelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateChannelRequestValidationError) Field ¶
func (e UpdateChannelRequestValidationError) Field() string
Field function returns field value.
func (UpdateChannelRequestValidationError) Key ¶
func (e UpdateChannelRequestValidationError) Key() bool
Key function returns key value.
func (UpdateChannelRequestValidationError) Reason ¶
func (e UpdateChannelRequestValidationError) Reason() string
Reason function returns reason value.