Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddAppReply
- func (*AddAppReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddAppReply) GetId() uint32
- func (*AddAppReply) ProtoMessage()
- func (x *AddAppReply) ProtoReflect() protoreflect.Message
- func (x *AddAppReply) Reset()
- func (x *AddAppReply) String() string
- func (m *AddAppReply) Validate() error
- func (m *AddAppReply) ValidateAll() error
- type AddAppReplyMultiError
- type AddAppReplyValidationError
- func (e AddAppReplyValidationError) Cause() error
- func (e AddAppReplyValidationError) Error() string
- func (e AddAppReplyValidationError) ErrorName() string
- func (e AddAppReplyValidationError) Field() string
- func (e AddAppReplyValidationError) Key() bool
- func (e AddAppReplyValidationError) Reason() string
- type AddAppRequest
- func (*AddAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddAppRequest) GetAllowRegistry() bool
- func (x *AddAppRequest) GetChannelIds() []uint32
- func (x *AddAppRequest) GetCopyright() string
- func (x *AddAppRequest) GetDescription() string
- func (x *AddAppRequest) GetFieldIds() []uint32
- func (x *AddAppRequest) GetKeyword() string
- func (x *AddAppRequest) GetLogo() string
- func (x *AddAppRequest) GetName() string
- func (x *AddAppRequest) GetStatus() bool
- func (x *AddAppRequest) GetVersion() string
- func (*AddAppRequest) ProtoMessage()
- func (x *AddAppRequest) ProtoReflect() protoreflect.Message
- func (x *AddAppRequest) Reset()
- func (x *AddAppRequest) String() string
- func (m *AddAppRequest) Validate() error
- func (m *AddAppRequest) ValidateAll() error
- type AddAppRequestMultiError
- type AddAppRequestValidationError
- func (e AddAppRequestValidationError) Cause() error
- func (e AddAppRequestValidationError) Error() string
- func (e AddAppRequestValidationError) ErrorName() string
- func (e AddAppRequestValidationError) Field() string
- func (e AddAppRequestValidationError) Key() bool
- func (e AddAppRequestValidationError) Reason() string
- type App
- func (*App) Descriptor() ([]byte, []int)deprecated
- func (x *App) GetAllowRegistry() bool
- func (x *App) GetChannels() []*App_Channel
- func (x *App) GetCopyright() string
- func (x *App) GetCreatedAt() uint32
- func (x *App) GetDescription() string
- func (x *App) GetFields() []*App_Field
- func (x *App) GetId() uint32
- func (x *App) GetKeyword() string
- func (x *App) GetLogo() string
- func (x *App) GetName() string
- func (x *App) GetResource() *v1.File
- func (x *App) GetStatus() bool
- func (x *App) GetUpdatedAt() uint32
- func (x *App) GetVersion() string
- func (*App) ProtoMessage()
- func (x *App) ProtoReflect() protoreflect.Message
- func (x *App) Reset()
- func (x *App) String() string
- func (m *App) Validate() error
- func (m *App) ValidateAll() error
- type AppMultiError
- type AppValidationError
- type App_Channel
- func (*App_Channel) Descriptor() ([]byte, []int)deprecated
- func (x *App_Channel) GetId() uint32
- func (x *App_Channel) GetLogo() string
- func (x *App_Channel) GetName() string
- func (x *App_Channel) GetPlatform() string
- func (*App_Channel) ProtoMessage()
- func (x *App_Channel) ProtoReflect() protoreflect.Message
- func (x *App_Channel) Reset()
- func (x *App_Channel) String() string
- func (m *App_Channel) Validate() error
- func (m *App_Channel) ValidateAll() error
- type App_ChannelMultiError
- type App_ChannelValidationError
- func (e App_ChannelValidationError) Cause() error
- func (e App_ChannelValidationError) Error() string
- func (e App_ChannelValidationError) ErrorName() string
- func (e App_ChannelValidationError) Field() string
- func (e App_ChannelValidationError) Key() bool
- func (e App_ChannelValidationError) Reason() string
- type App_Field
- func (*App_Field) Descriptor() ([]byte, []int)deprecated
- func (x *App_Field) GetId() uint32
- func (x *App_Field) GetKeyword() string
- func (x *App_Field) GetName() string
- func (x *App_Field) GetType() string
- func (*App_Field) ProtoMessage()
- func (x *App_Field) ProtoReflect() protoreflect.Message
- func (x *App_Field) Reset()
- func (x *App_Field) String() string
- func (m *App_Field) Validate() error
- func (m *App_Field) ValidateAll() error
- type App_FieldMultiError
- type App_FieldValidationError
- type DeleteAppRequest
- func (*DeleteAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAppRequest) GetId() uint32
- func (*DeleteAppRequest) ProtoMessage()
- func (x *DeleteAppRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAppRequest) Reset()
- func (x *DeleteAppRequest) String() string
- func (m *DeleteAppRequest) Validate() error
- func (m *DeleteAppRequest) ValidateAll() error
- type DeleteAppRequestMultiError
- type DeleteAppRequestValidationError
- func (e DeleteAppRequestValidationError) Cause() error
- func (e DeleteAppRequestValidationError) Error() string
- func (e DeleteAppRequestValidationError) ErrorName() string
- func (e DeleteAppRequestValidationError) Field() string
- func (e DeleteAppRequestValidationError) Key() bool
- func (e DeleteAppRequestValidationError) Reason() string
- type GetAppByKeywordRequest
- func (*GetAppByKeywordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAppByKeywordRequest) GetKeyword() string
- func (*GetAppByKeywordRequest) ProtoMessage()
- func (x *GetAppByKeywordRequest) ProtoReflect() protoreflect.Message
- func (x *GetAppByKeywordRequest) Reset()
- func (x *GetAppByKeywordRequest) String() string
- func (m *GetAppByKeywordRequest) Validate() error
- func (m *GetAppByKeywordRequest) ValidateAll() error
- type GetAppByKeywordRequestMultiError
- type GetAppByKeywordRequestValidationError
- func (e GetAppByKeywordRequestValidationError) Cause() error
- func (e GetAppByKeywordRequestValidationError) Error() string
- func (e GetAppByKeywordRequestValidationError) ErrorName() string
- func (e GetAppByKeywordRequestValidationError) Field() string
- func (e GetAppByKeywordRequestValidationError) Key() bool
- func (e GetAppByKeywordRequestValidationError) Reason() string
- type PageAppReply
- func (*PageAppReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageAppReply) GetList() []*App
- func (x *PageAppReply) GetTotal() uint32
- func (*PageAppReply) ProtoMessage()
- func (x *PageAppReply) ProtoReflect() protoreflect.Message
- func (x *PageAppReply) Reset()
- func (x *PageAppReply) String() string
- func (m *PageAppReply) Validate() error
- func (m *PageAppReply) ValidateAll() error
- type PageAppReplyMultiError
- type PageAppReplyValidationError
- func (e PageAppReplyValidationError) Cause() error
- func (e PageAppReplyValidationError) Error() string
- func (e PageAppReplyValidationError) ErrorName() string
- func (e PageAppReplyValidationError) Field() string
- func (e PageAppReplyValidationError) Key() bool
- func (e PageAppReplyValidationError) Reason() string
- type PageAppRequest
- func (*PageAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageAppRequest) GetKeyword() string
- func (x *PageAppRequest) GetName() string
- func (x *PageAppRequest) GetPage() uint32
- func (x *PageAppRequest) GetPageSize() uint32
- func (*PageAppRequest) ProtoMessage()
- func (x *PageAppRequest) ProtoReflect() protoreflect.Message
- func (x *PageAppRequest) Reset()
- func (x *PageAppRequest) String() string
- func (m *PageAppRequest) Validate() error
- func (m *PageAppRequest) ValidateAll() error
- type PageAppRequestMultiError
- type PageAppRequestValidationError
- func (e PageAppRequestValidationError) Cause() error
- func (e PageAppRequestValidationError) Error() string
- func (e PageAppRequestValidationError) ErrorName() string
- func (e PageAppRequestValidationError) Field() string
- func (e PageAppRequestValidationError) Key() bool
- func (e PageAppRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddApp(ctx context.Context, in *AddAppRequest, opts ...http.CallOption) (*AddAppReply, error)
- func (c *ServiceHTTPClientImpl) DeleteApp(ctx context.Context, in *DeleteAppRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetAppByKeyword(ctx context.Context, in *GetAppByKeywordRequest, opts ...http.CallOption) (*App, error)
- func (c *ServiceHTTPClientImpl) PageApp(ctx context.Context, in *PageAppRequest, opts ...http.CallOption) (*PageAppReply, error)
- func (c *ServiceHTTPClientImpl) UpdateApp(ctx context.Context, in *UpdateAppRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddApp(context.Context, *AddAppRequest) (*AddAppReply, error)
- func (UnimplementedServiceServer) DeleteApp(context.Context, *DeleteAppRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetAppByKeyword(context.Context, *GetAppByKeywordRequest) (*App, error)
- func (UnimplementedServiceServer) PageApp(context.Context, *PageAppRequest) (*PageAppReply, error)
- func (UnimplementedServiceServer) UpdateApp(context.Context, *UpdateAppRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateAppRequest
- func (*UpdateAppRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAppRequest) GetAllowRegistry() bool
- func (x *UpdateAppRequest) GetChannelIds() []uint32
- func (x *UpdateAppRequest) GetCopyright() string
- func (x *UpdateAppRequest) GetDescription() string
- func (x *UpdateAppRequest) GetFieldIds() []uint32
- func (x *UpdateAppRequest) GetId() uint32
- func (x *UpdateAppRequest) GetKeyword() string
- func (x *UpdateAppRequest) GetLogo() string
- func (x *UpdateAppRequest) GetName() string
- func (x *UpdateAppRequest) GetStatus() bool
- func (x *UpdateAppRequest) GetVersion() string
- func (*UpdateAppRequest) ProtoMessage()
- func (x *UpdateAppRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAppRequest) Reset()
- func (x *UpdateAppRequest) String() string
- func (m *UpdateAppRequest) Validate() error
- func (m *UpdateAppRequest) ValidateAll() error
- type UpdateAppRequestMultiError
- type UpdateAppRequestValidationError
- func (e UpdateAppRequestValidationError) Cause() error
- func (e UpdateAppRequestValidationError) Error() string
- func (e UpdateAppRequestValidationError) ErrorName() string
- func (e UpdateAppRequestValidationError) Field() string
- func (e UpdateAppRequestValidationError) Key() bool
- func (e UpdateAppRequestValidationError) Reason() string
Constants ¶
const ( Service_PageApp_FullMethodName = "/app.Service/PageApp" Service_GetAppByKeyword_FullMethodName = "/app.Service/GetAppByKeyword" Service_AddApp_FullMethodName = "/app.Service/AddApp" Service_UpdateApp_FullMethodName = "/app.Service/UpdateApp" Service_DeleteApp_FullMethodName = "/app.Service/DeleteApp" )
const OperationServiceAddApp = "/app.Service/AddApp"
const OperationServiceDeleteApp = "/app.Service/DeleteApp"
const OperationServiceGetAppByKeyword = "/app.Service/GetAppByKeyword"
const OperationServicePageApp = "/app.Service/PageApp"
const OperationServiceUpdateApp = "/app.Service/UpdateApp"
Variables ¶
var File_user_center_app_proto protoreflect.FileDescriptor
var File_user_center_app_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "app.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageApp", Handler: _Service_PageApp_Handler, }, { MethodName: "GetAppByKeyword", Handler: _Service_GetAppByKeyword_Handler, }, { MethodName: "AddApp", Handler: _Service_AddApp_Handler, }, { MethodName: "UpdateApp", Handler: _Service_UpdateApp_Handler, }, { MethodName: "DeleteApp", Handler: _Service_DeleteApp_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center_app_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 AddAppReply ¶
type AddAppReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddAppReply) Descriptor
deprecated
func (*AddAppReply) Descriptor() ([]byte, []int)
Deprecated: Use AddAppReply.ProtoReflect.Descriptor instead.
func (*AddAppReply) GetId ¶
func (x *AddAppReply) GetId() uint32
func (*AddAppReply) ProtoMessage ¶
func (*AddAppReply) ProtoMessage()
func (*AddAppReply) ProtoReflect ¶
func (x *AddAppReply) ProtoReflect() protoreflect.Message
func (*AddAppReply) Reset ¶
func (x *AddAppReply) Reset()
func (*AddAppReply) String ¶
func (x *AddAppReply) String() string
func (*AddAppReply) Validate ¶
func (m *AddAppReply) Validate() error
Validate checks the field values on AddAppReply 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 (*AddAppReply) ValidateAll ¶
func (m *AddAppReply) ValidateAll() error
ValidateAll checks the field values on AddAppReply 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 AddAppReplyMultiError, or nil if none found.
type AddAppReplyMultiError ¶
type AddAppReplyMultiError []error
AddAppReplyMultiError is an error wrapping multiple validation errors returned by AddAppReply.ValidateAll() if the designated constraints aren't met.
func (AddAppReplyMultiError) AllErrors ¶
func (m AddAppReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddAppReplyMultiError) Error ¶
func (m AddAppReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddAppReplyValidationError ¶
type AddAppReplyValidationError struct {
// contains filtered or unexported fields
}
AddAppReplyValidationError is the validation error returned by AddAppReply.Validate if the designated constraints aren't met.
func (AddAppReplyValidationError) Cause ¶
func (e AddAppReplyValidationError) Cause() error
Cause function returns cause value.
func (AddAppReplyValidationError) Error ¶
func (e AddAppReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddAppReplyValidationError) ErrorName ¶
func (e AddAppReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddAppReplyValidationError) Field ¶
func (e AddAppReplyValidationError) Field() string
Field function returns field value.
func (AddAppReplyValidationError) Key ¶
func (e AddAppReplyValidationError) Key() bool
Key function returns key value.
func (AddAppReplyValidationError) Reason ¶
func (e AddAppReplyValidationError) Reason() string
Reason function returns reason value.
type AddAppRequest ¶
type AddAppRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Logo string `protobuf:"bytes,2,opt,name=logo,proto3" json:"logo,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` Status *bool `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"` AllowRegistry *bool `protobuf:"varint,6,opt,name=allow_registry,json=allowRegistry,proto3,oneof" json:"allow_registry,omitempty"` ChannelIds []uint32 `protobuf:"varint,7,rep,packed,name=channel_ids,json=channelIds,proto3" json:"channel_ids,omitempty"` FieldIds []uint32 `protobuf:"varint,8,rep,packed,name=field_ids,json=fieldIds,proto3" json:"field_ids,omitempty"` Version *string `protobuf:"bytes,9,opt,name=version,proto3,oneof" json:"version,omitempty"` Copyright *string `protobuf:"bytes,10,opt,name=copyright,proto3,oneof" json:"copyright,omitempty"` // contains filtered or unexported fields }
func (*AddAppRequest) Descriptor
deprecated
func (*AddAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddAppRequest.ProtoReflect.Descriptor instead.
func (*AddAppRequest) GetAllowRegistry ¶
func (x *AddAppRequest) GetAllowRegistry() bool
func (*AddAppRequest) GetChannelIds ¶
func (x *AddAppRequest) GetChannelIds() []uint32
func (*AddAppRequest) GetCopyright ¶
func (x *AddAppRequest) GetCopyright() string
func (*AddAppRequest) GetDescription ¶
func (x *AddAppRequest) GetDescription() string
func (*AddAppRequest) GetFieldIds ¶
func (x *AddAppRequest) GetFieldIds() []uint32
func (*AddAppRequest) GetKeyword ¶
func (x *AddAppRequest) GetKeyword() string
func (*AddAppRequest) GetLogo ¶
func (x *AddAppRequest) GetLogo() string
func (*AddAppRequest) GetName ¶
func (x *AddAppRequest) GetName() string
func (*AddAppRequest) GetStatus ¶
func (x *AddAppRequest) GetStatus() bool
func (*AddAppRequest) GetVersion ¶
func (x *AddAppRequest) GetVersion() string
func (*AddAppRequest) ProtoMessage ¶
func (*AddAppRequest) ProtoMessage()
func (*AddAppRequest) ProtoReflect ¶
func (x *AddAppRequest) ProtoReflect() protoreflect.Message
func (*AddAppRequest) Reset ¶
func (x *AddAppRequest) Reset()
func (*AddAppRequest) String ¶
func (x *AddAppRequest) String() string
func (*AddAppRequest) Validate ¶
func (m *AddAppRequest) Validate() error
Validate checks the field values on AddAppRequest 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 (*AddAppRequest) ValidateAll ¶
func (m *AddAppRequest) ValidateAll() error
ValidateAll checks the field values on AddAppRequest 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 AddAppRequestMultiError, or nil if none found.
type AddAppRequestMultiError ¶
type AddAppRequestMultiError []error
AddAppRequestMultiError is an error wrapping multiple validation errors returned by AddAppRequest.ValidateAll() if the designated constraints aren't met.
func (AddAppRequestMultiError) AllErrors ¶
func (m AddAppRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddAppRequestMultiError) Error ¶
func (m AddAppRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddAppRequestValidationError ¶
type AddAppRequestValidationError struct {
// contains filtered or unexported fields
}
AddAppRequestValidationError is the validation error returned by AddAppRequest.Validate if the designated constraints aren't met.
func (AddAppRequestValidationError) Cause ¶
func (e AddAppRequestValidationError) Cause() error
Cause function returns cause value.
func (AddAppRequestValidationError) Error ¶
func (e AddAppRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddAppRequestValidationError) ErrorName ¶
func (e AddAppRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddAppRequestValidationError) Field ¶
func (e AddAppRequestValidationError) Field() string
Field function returns field value.
func (AddAppRequestValidationError) Key ¶
func (e AddAppRequestValidationError) Key() bool
Key function returns key value.
func (AddAppRequestValidationError) Reason ¶
func (e AddAppRequestValidationError) Reason() string
Reason function returns reason value.
type App ¶
type App struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Logo string `protobuf:"bytes,3,opt,name=logo,proto3" json:"logo,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Status bool `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` Copyright string `protobuf:"bytes,8,opt,name=copyright,proto3" json:"copyright,omitempty"` AllowRegistry bool `protobuf:"varint,9,opt,name=allow_registry,json=allowRegistry,proto3" json:"allow_registry,omitempty"` Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` Channels []*App_Channel `protobuf:"bytes,11,rep,name=channels,proto3" json:"channels,omitempty"` Fields []*App_Field `protobuf:"bytes,12,rep,name=fields,proto3" json:"fields,omitempty"` CreatedAt uint32 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Resource *v1.File `protobuf:"bytes,15,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*App) Descriptor
deprecated
func (*App) GetAllowRegistry ¶
func (*App) GetChannels ¶
func (x *App) GetChannels() []*App_Channel
func (*App) GetCopyright ¶
func (*App) GetCreatedAt ¶
func (*App) GetDescription ¶
func (*App) GetKeyword ¶
func (*App) GetResource ¶
func (*App) GetUpdatedAt ¶
func (*App) GetVersion ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) ProtoReflect ¶
func (x *App) ProtoReflect() protoreflect.Message
func (*App) Validate ¶
Validate checks the field values on App 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 (*App) ValidateAll ¶
ValidateAll checks the field values on App 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 AppMultiError, or nil if none found.
type AppMultiError ¶
type AppMultiError []error
AppMultiError is an error wrapping multiple validation errors returned by App.ValidateAll() if the designated constraints aren't met.
func (AppMultiError) AllErrors ¶
func (m AppMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AppMultiError) Error ¶
func (m AppMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AppValidationError ¶
type AppValidationError struct {
// contains filtered or unexported fields
}
AppValidationError is the validation error returned by App.Validate if the designated constraints aren't met.
func (AppValidationError) Cause ¶
func (e AppValidationError) Cause() error
Cause function returns cause value.
func (AppValidationError) Error ¶
func (e AppValidationError) Error() string
Error satisfies the builtin error interface
func (AppValidationError) ErrorName ¶
func (e AppValidationError) ErrorName() string
ErrorName returns error name.
func (AppValidationError) Field ¶
func (e AppValidationError) Field() string
Field function returns field value.
func (AppValidationError) Key ¶
func (e AppValidationError) Key() bool
Key function returns key value.
func (AppValidationError) Reason ¶
func (e AppValidationError) Reason() string
Reason function returns reason value.
type App_Channel ¶
type App_Channel struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"` // contains filtered or unexported fields }
func (*App_Channel) Descriptor
deprecated
func (*App_Channel) Descriptor() ([]byte, []int)
Deprecated: Use App_Channel.ProtoReflect.Descriptor instead.
func (*App_Channel) GetId ¶
func (x *App_Channel) GetId() uint32
func (*App_Channel) GetLogo ¶
func (x *App_Channel) GetLogo() string
func (*App_Channel) GetName ¶
func (x *App_Channel) GetName() string
func (*App_Channel) GetPlatform ¶
func (x *App_Channel) GetPlatform() string
func (*App_Channel) ProtoMessage ¶
func (*App_Channel) ProtoMessage()
func (*App_Channel) ProtoReflect ¶
func (x *App_Channel) ProtoReflect() protoreflect.Message
func (*App_Channel) Reset ¶
func (x *App_Channel) Reset()
func (*App_Channel) String ¶
func (x *App_Channel) String() string
func (*App_Channel) Validate ¶
func (m *App_Channel) Validate() error
Validate checks the field values on App_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 (*App_Channel) ValidateAll ¶
func (m *App_Channel) ValidateAll() error
ValidateAll checks the field values on App_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 App_ChannelMultiError, or nil if none found.
type App_ChannelMultiError ¶
type App_ChannelMultiError []error
App_ChannelMultiError is an error wrapping multiple validation errors returned by App_Channel.ValidateAll() if the designated constraints aren't met.
func (App_ChannelMultiError) AllErrors ¶
func (m App_ChannelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (App_ChannelMultiError) Error ¶
func (m App_ChannelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type App_ChannelValidationError ¶
type App_ChannelValidationError struct {
// contains filtered or unexported fields
}
App_ChannelValidationError is the validation error returned by App_Channel.Validate if the designated constraints aren't met.
func (App_ChannelValidationError) Cause ¶
func (e App_ChannelValidationError) Cause() error
Cause function returns cause value.
func (App_ChannelValidationError) Error ¶
func (e App_ChannelValidationError) Error() string
Error satisfies the builtin error interface
func (App_ChannelValidationError) ErrorName ¶
func (e App_ChannelValidationError) ErrorName() string
ErrorName returns error name.
func (App_ChannelValidationError) Field ¶
func (e App_ChannelValidationError) Field() string
Field function returns field value.
func (App_ChannelValidationError) Key ¶
func (e App_ChannelValidationError) Key() bool
Key function returns key value.
func (App_ChannelValidationError) Reason ¶
func (e App_ChannelValidationError) Reason() string
Reason function returns reason value.
type App_Field ¶
type App_Field struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*App_Field) Descriptor
deprecated
func (*App_Field) GetKeyword ¶
func (*App_Field) ProtoMessage ¶
func (*App_Field) ProtoMessage()
func (*App_Field) ProtoReflect ¶
func (x *App_Field) ProtoReflect() protoreflect.Message
func (*App_Field) Validate ¶
Validate checks the field values on App_Field 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 (*App_Field) ValidateAll ¶
ValidateAll checks the field values on App_Field 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 App_FieldMultiError, or nil if none found.
type App_FieldMultiError ¶
type App_FieldMultiError []error
App_FieldMultiError is an error wrapping multiple validation errors returned by App_Field.ValidateAll() if the designated constraints aren't met.
func (App_FieldMultiError) AllErrors ¶
func (m App_FieldMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (App_FieldMultiError) Error ¶
func (m App_FieldMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type App_FieldValidationError ¶
type App_FieldValidationError struct {
// contains filtered or unexported fields
}
App_FieldValidationError is the validation error returned by App_Field.Validate if the designated constraints aren't met.
func (App_FieldValidationError) Cause ¶
func (e App_FieldValidationError) Cause() error
Cause function returns cause value.
func (App_FieldValidationError) Error ¶
func (e App_FieldValidationError) Error() string
Error satisfies the builtin error interface
func (App_FieldValidationError) ErrorName ¶
func (e App_FieldValidationError) ErrorName() string
ErrorName returns error name.
func (App_FieldValidationError) Field ¶
func (e App_FieldValidationError) Field() string
Field function returns field value.
func (App_FieldValidationError) Key ¶
func (e App_FieldValidationError) Key() bool
Key function returns key value.
func (App_FieldValidationError) Reason ¶
func (e App_FieldValidationError) Reason() string
Reason function returns reason value.
type DeleteAppRequest ¶
type DeleteAppRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAppRequest) Descriptor
deprecated
func (*DeleteAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAppRequest.ProtoReflect.Descriptor instead.
func (*DeleteAppRequest) GetId ¶
func (x *DeleteAppRequest) GetId() uint32
func (*DeleteAppRequest) ProtoMessage ¶
func (*DeleteAppRequest) ProtoMessage()
func (*DeleteAppRequest) ProtoReflect ¶
func (x *DeleteAppRequest) ProtoReflect() protoreflect.Message
func (*DeleteAppRequest) Reset ¶
func (x *DeleteAppRequest) Reset()
func (*DeleteAppRequest) String ¶
func (x *DeleteAppRequest) String() string
func (*DeleteAppRequest) Validate ¶
func (m *DeleteAppRequest) Validate() error
Validate checks the field values on DeleteAppRequest 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 (*DeleteAppRequest) ValidateAll ¶
func (m *DeleteAppRequest) ValidateAll() error
ValidateAll checks the field values on DeleteAppRequest 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 DeleteAppRequestMultiError, or nil if none found.
type DeleteAppRequestMultiError ¶
type DeleteAppRequestMultiError []error
DeleteAppRequestMultiError is an error wrapping multiple validation errors returned by DeleteAppRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteAppRequestMultiError) AllErrors ¶
func (m DeleteAppRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAppRequestMultiError) Error ¶
func (m DeleteAppRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAppRequestValidationError ¶
type DeleteAppRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteAppRequestValidationError is the validation error returned by DeleteAppRequest.Validate if the designated constraints aren't met.
func (DeleteAppRequestValidationError) Cause ¶
func (e DeleteAppRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteAppRequestValidationError) Error ¶
func (e DeleteAppRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAppRequestValidationError) ErrorName ¶
func (e DeleteAppRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAppRequestValidationError) Field ¶
func (e DeleteAppRequestValidationError) Field() string
Field function returns field value.
func (DeleteAppRequestValidationError) Key ¶
func (e DeleteAppRequestValidationError) Key() bool
Key function returns key value.
func (DeleteAppRequestValidationError) Reason ¶
func (e DeleteAppRequestValidationError) Reason() string
Reason function returns reason value.
type GetAppByKeywordRequest ¶
type GetAppByKeywordRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*GetAppByKeywordRequest) Descriptor
deprecated
func (*GetAppByKeywordRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAppByKeywordRequest.ProtoReflect.Descriptor instead.
func (*GetAppByKeywordRequest) GetKeyword ¶
func (x *GetAppByKeywordRequest) GetKeyword() string
func (*GetAppByKeywordRequest) ProtoMessage ¶
func (*GetAppByKeywordRequest) ProtoMessage()
func (*GetAppByKeywordRequest) ProtoReflect ¶
func (x *GetAppByKeywordRequest) ProtoReflect() protoreflect.Message
func (*GetAppByKeywordRequest) Reset ¶
func (x *GetAppByKeywordRequest) Reset()
func (*GetAppByKeywordRequest) String ¶
func (x *GetAppByKeywordRequest) String() string
func (*GetAppByKeywordRequest) Validate ¶
func (m *GetAppByKeywordRequest) Validate() error
Validate checks the field values on GetAppByKeywordRequest 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 (*GetAppByKeywordRequest) ValidateAll ¶
func (m *GetAppByKeywordRequest) ValidateAll() error
ValidateAll checks the field values on GetAppByKeywordRequest 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 GetAppByKeywordRequestMultiError, or nil if none found.
type GetAppByKeywordRequestMultiError ¶
type GetAppByKeywordRequestMultiError []error
GetAppByKeywordRequestMultiError is an error wrapping multiple validation errors returned by GetAppByKeywordRequest.ValidateAll() if the designated constraints aren't met.
func (GetAppByKeywordRequestMultiError) AllErrors ¶
func (m GetAppByKeywordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAppByKeywordRequestMultiError) Error ¶
func (m GetAppByKeywordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAppByKeywordRequestValidationError ¶
type GetAppByKeywordRequestValidationError struct {
// contains filtered or unexported fields
}
GetAppByKeywordRequestValidationError is the validation error returned by GetAppByKeywordRequest.Validate if the designated constraints aren't met.
func (GetAppByKeywordRequestValidationError) Cause ¶
func (e GetAppByKeywordRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAppByKeywordRequestValidationError) Error ¶
func (e GetAppByKeywordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAppByKeywordRequestValidationError) ErrorName ¶
func (e GetAppByKeywordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAppByKeywordRequestValidationError) Field ¶
func (e GetAppByKeywordRequestValidationError) Field() string
Field function returns field value.
func (GetAppByKeywordRequestValidationError) Key ¶
func (e GetAppByKeywordRequestValidationError) Key() bool
Key function returns key value.
func (GetAppByKeywordRequestValidationError) Reason ¶
func (e GetAppByKeywordRequestValidationError) Reason() string
Reason function returns reason value.
type PageAppReply ¶
type PageAppReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*App `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageAppReply) Descriptor
deprecated
func (*PageAppReply) Descriptor() ([]byte, []int)
Deprecated: Use PageAppReply.ProtoReflect.Descriptor instead.
func (*PageAppReply) GetList ¶
func (x *PageAppReply) GetList() []*App
func (*PageAppReply) GetTotal ¶
func (x *PageAppReply) GetTotal() uint32
func (*PageAppReply) ProtoMessage ¶
func (*PageAppReply) ProtoMessage()
func (*PageAppReply) ProtoReflect ¶
func (x *PageAppReply) ProtoReflect() protoreflect.Message
func (*PageAppReply) Reset ¶
func (x *PageAppReply) Reset()
func (*PageAppReply) String ¶
func (x *PageAppReply) String() string
func (*PageAppReply) Validate ¶
func (m *PageAppReply) Validate() error
Validate checks the field values on PageAppReply 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 (*PageAppReply) ValidateAll ¶
func (m *PageAppReply) ValidateAll() error
ValidateAll checks the field values on PageAppReply 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 PageAppReplyMultiError, or nil if none found.
type PageAppReplyMultiError ¶
type PageAppReplyMultiError []error
PageAppReplyMultiError is an error wrapping multiple validation errors returned by PageAppReply.ValidateAll() if the designated constraints aren't met.
func (PageAppReplyMultiError) AllErrors ¶
func (m PageAppReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageAppReplyMultiError) Error ¶
func (m PageAppReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageAppReplyValidationError ¶
type PageAppReplyValidationError struct {
// contains filtered or unexported fields
}
PageAppReplyValidationError is the validation error returned by PageAppReply.Validate if the designated constraints aren't met.
func (PageAppReplyValidationError) Cause ¶
func (e PageAppReplyValidationError) Cause() error
Cause function returns cause value.
func (PageAppReplyValidationError) Error ¶
func (e PageAppReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageAppReplyValidationError) ErrorName ¶
func (e PageAppReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageAppReplyValidationError) Field ¶
func (e PageAppReplyValidationError) Field() string
Field function returns field value.
func (PageAppReplyValidationError) Key ¶
func (e PageAppReplyValidationError) Key() bool
Key function returns key value.
func (PageAppReplyValidationError) Reason ¶
func (e PageAppReplyValidationError) Reason() string
Reason function returns reason value.
type PageAppRequest ¶
type PageAppRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Keyword *string `protobuf:"bytes,3,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PageAppRequest) Descriptor
deprecated
func (*PageAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageAppRequest.ProtoReflect.Descriptor instead.
func (*PageAppRequest) GetKeyword ¶
func (x *PageAppRequest) GetKeyword() string
func (*PageAppRequest) GetName ¶
func (x *PageAppRequest) GetName() string
func (*PageAppRequest) GetPage ¶
func (x *PageAppRequest) GetPage() uint32
func (*PageAppRequest) GetPageSize ¶
func (x *PageAppRequest) GetPageSize() uint32
func (*PageAppRequest) ProtoMessage ¶
func (*PageAppRequest) ProtoMessage()
func (*PageAppRequest) ProtoReflect ¶
func (x *PageAppRequest) ProtoReflect() protoreflect.Message
func (*PageAppRequest) Reset ¶
func (x *PageAppRequest) Reset()
func (*PageAppRequest) String ¶
func (x *PageAppRequest) String() string
func (*PageAppRequest) Validate ¶
func (m *PageAppRequest) Validate() error
Validate checks the field values on PageAppRequest 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 (*PageAppRequest) ValidateAll ¶
func (m *PageAppRequest) ValidateAll() error
ValidateAll checks the field values on PageAppRequest 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 PageAppRequestMultiError, or nil if none found.
type PageAppRequestMultiError ¶
type PageAppRequestMultiError []error
PageAppRequestMultiError is an error wrapping multiple validation errors returned by PageAppRequest.ValidateAll() if the designated constraints aren't met.
func (PageAppRequestMultiError) AllErrors ¶
func (m PageAppRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageAppRequestMultiError) Error ¶
func (m PageAppRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageAppRequestValidationError ¶
type PageAppRequestValidationError struct {
// contains filtered or unexported fields
}
PageAppRequestValidationError is the validation error returned by PageAppRequest.Validate if the designated constraints aren't met.
func (PageAppRequestValidationError) Cause ¶
func (e PageAppRequestValidationError) Cause() error
Cause function returns cause value.
func (PageAppRequestValidationError) Error ¶
func (e PageAppRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageAppRequestValidationError) ErrorName ¶
func (e PageAppRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageAppRequestValidationError) Field ¶
func (e PageAppRequestValidationError) Field() string
Field function returns field value.
func (PageAppRequestValidationError) Key ¶
func (e PageAppRequestValidationError) Key() bool
Key function returns key value.
func (PageAppRequestValidationError) Reason ¶
func (e PageAppRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // 获取分页应用 PageApp(ctx context.Context, in *PageAppRequest, opts ...grpc.CallOption) (*PageAppReply, error) // 获取指定的应用 GetAppByKeyword(ctx context.Context, in *GetAppByKeywordRequest, opts ...grpc.CallOption) (*App, error) // 添加应用 AddApp(ctx context.Context, in *AddAppRequest, opts ...grpc.CallOption) (*AddAppReply, error) // 更新应用 UpdateApp(ctx context.Context, in *UpdateAppRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 删除应用 DeleteApp(ctx context.Context, in *DeleteAppRequest, 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 { AddApp(ctx context.Context, req *AddAppRequest, opts ...http.CallOption) (rsp *AddAppReply, err error) DeleteApp(ctx context.Context, req *DeleteAppRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetAppByKeyword(ctx context.Context, req *GetAppByKeywordRequest, opts ...http.CallOption) (rsp *App, err error) PageApp(ctx context.Context, req *PageAppRequest, opts ...http.CallOption) (rsp *PageAppReply, err error) UpdateApp(ctx context.Context, req *UpdateAppRequest, 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) AddApp ¶
func (c *ServiceHTTPClientImpl) AddApp(ctx context.Context, in *AddAppRequest, opts ...http.CallOption) (*AddAppReply, error)
func (*ServiceHTTPClientImpl) DeleteApp ¶
func (c *ServiceHTTPClientImpl) DeleteApp(ctx context.Context, in *DeleteAppRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetAppByKeyword ¶
func (c *ServiceHTTPClientImpl) GetAppByKeyword(ctx context.Context, in *GetAppByKeywordRequest, opts ...http.CallOption) (*App, error)
func (*ServiceHTTPClientImpl) PageApp ¶
func (c *ServiceHTTPClientImpl) PageApp(ctx context.Context, in *PageAppRequest, opts ...http.CallOption) (*PageAppReply, error)
func (*ServiceHTTPClientImpl) UpdateApp ¶
func (c *ServiceHTTPClientImpl) UpdateApp(ctx context.Context, in *UpdateAppRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddApp 添加应用 AddApp(context.Context, *AddAppRequest) (*AddAppReply, error) // DeleteApp 删除应用 DeleteApp(context.Context, *DeleteAppRequest) (*emptypb.Empty, error) // GetAppByKeyword 获取指定的应用 GetAppByKeyword(context.Context, *GetAppByKeywordRequest) (*App, error) // PageApp 获取分页应用 PageApp(context.Context, *PageAppRequest) (*PageAppReply, error) // UpdateApp 更新应用 UpdateApp(context.Context, *UpdateAppRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // 获取分页应用 PageApp(context.Context, *PageAppRequest) (*PageAppReply, error) // 获取指定的应用 GetAppByKeyword(context.Context, *GetAppByKeywordRequest) (*App, error) // 添加应用 AddApp(context.Context, *AddAppRequest) (*AddAppReply, error) // 更新应用 UpdateApp(context.Context, *UpdateAppRequest) (*emptypb.Empty, error) // 删除应用 DeleteApp(context.Context, *DeleteAppRequest) (*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) AddApp ¶
func (UnimplementedServiceServer) AddApp(context.Context, *AddAppRequest) (*AddAppReply, error)
func (UnimplementedServiceServer) DeleteApp ¶
func (UnimplementedServiceServer) DeleteApp(context.Context, *DeleteAppRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetAppByKeyword ¶
func (UnimplementedServiceServer) GetAppByKeyword(context.Context, *GetAppByKeywordRequest) (*App, error)
func (UnimplementedServiceServer) PageApp ¶
func (UnimplementedServiceServer) PageApp(context.Context, *PageAppRequest) (*PageAppReply, error)
func (UnimplementedServiceServer) UpdateApp ¶
func (UnimplementedServiceServer) UpdateApp(context.Context, *UpdateAppRequest) (*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 UpdateAppRequest ¶
type UpdateAppRequest struct { Id uint32 `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Logo string `protobuf:"bytes,2,opt,name=logo,proto3" json:"logo,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` Status *bool `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"` AllowRegistry *bool `protobuf:"varint,6,opt,name=allow_registry,json=allowRegistry,proto3,oneof" json:"allow_registry,omitempty"` ChannelIds []uint32 `protobuf:"varint,7,rep,packed,name=channel_ids,json=channelIds,proto3" json:"channel_ids,omitempty"` FieldIds []uint32 `protobuf:"varint,8,rep,packed,name=field_ids,json=fieldIds,proto3" json:"field_ids,omitempty"` Version *string `protobuf:"bytes,9,opt,name=version,proto3,oneof" json:"version,omitempty"` Copyright *string `protobuf:"bytes,10,opt,name=copyright,proto3,oneof" json:"copyright,omitempty"` // contains filtered or unexported fields }
func (*UpdateAppRequest) Descriptor
deprecated
func (*UpdateAppRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAppRequest.ProtoReflect.Descriptor instead.
func (*UpdateAppRequest) GetAllowRegistry ¶
func (x *UpdateAppRequest) GetAllowRegistry() bool
func (*UpdateAppRequest) GetChannelIds ¶
func (x *UpdateAppRequest) GetChannelIds() []uint32
func (*UpdateAppRequest) GetCopyright ¶
func (x *UpdateAppRequest) GetCopyright() string
func (*UpdateAppRequest) GetDescription ¶
func (x *UpdateAppRequest) GetDescription() string
func (*UpdateAppRequest) GetFieldIds ¶
func (x *UpdateAppRequest) GetFieldIds() []uint32
func (*UpdateAppRequest) GetId ¶
func (x *UpdateAppRequest) GetId() uint32
func (*UpdateAppRequest) GetKeyword ¶
func (x *UpdateAppRequest) GetKeyword() string
func (*UpdateAppRequest) GetLogo ¶
func (x *UpdateAppRequest) GetLogo() string
func (*UpdateAppRequest) GetName ¶
func (x *UpdateAppRequest) GetName() string
func (*UpdateAppRequest) GetStatus ¶
func (x *UpdateAppRequest) GetStatus() bool
func (*UpdateAppRequest) GetVersion ¶
func (x *UpdateAppRequest) GetVersion() string
func (*UpdateAppRequest) ProtoMessage ¶
func (*UpdateAppRequest) ProtoMessage()
func (*UpdateAppRequest) ProtoReflect ¶
func (x *UpdateAppRequest) ProtoReflect() protoreflect.Message
func (*UpdateAppRequest) Reset ¶
func (x *UpdateAppRequest) Reset()
func (*UpdateAppRequest) String ¶
func (x *UpdateAppRequest) String() string
func (*UpdateAppRequest) Validate ¶
func (m *UpdateAppRequest) Validate() error
Validate checks the field values on UpdateAppRequest 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 (*UpdateAppRequest) ValidateAll ¶
func (m *UpdateAppRequest) ValidateAll() error
ValidateAll checks the field values on UpdateAppRequest 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 UpdateAppRequestMultiError, or nil if none found.
type UpdateAppRequestMultiError ¶
type UpdateAppRequestMultiError []error
UpdateAppRequestMultiError is an error wrapping multiple validation errors returned by UpdateAppRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateAppRequestMultiError) AllErrors ¶
func (m UpdateAppRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAppRequestMultiError) Error ¶
func (m UpdateAppRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAppRequestValidationError ¶
type UpdateAppRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateAppRequestValidationError is the validation error returned by UpdateAppRequest.Validate if the designated constraints aren't met.
func (UpdateAppRequestValidationError) Cause ¶
func (e UpdateAppRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateAppRequestValidationError) Error ¶
func (e UpdateAppRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAppRequestValidationError) ErrorName ¶
func (e UpdateAppRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAppRequestValidationError) Field ¶
func (e UpdateAppRequestValidationError) Field() string
Field function returns field value.
func (UpdateAppRequestValidationError) Key ¶
func (e UpdateAppRequestValidationError) Key() bool
Key function returns key value.
func (UpdateAppRequestValidationError) Reason ¶
func (e UpdateAppRequestValidationError) Reason() string
Reason function returns reason value.