v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationServiceAddApp = "/app.Service/AddApp"
View Source
const OperationServiceDeleteApp = "/app.Service/DeleteApp"
View Source
const OperationServiceGetAppByKeyword = "/app.Service/GetAppByKeyword"
View Source
const OperationServicePageApp = "/app.Service/PageApp"
View Source
const OperationServiceUpdateApp = "/app.Service/UpdateApp"

Variables

View Source
var File_user_center_app_proto protoreflect.FileDescriptor
View Source
var File_user_center_app_service_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (AddAppReplyValidationError) Error

Error satisfies the builtin error interface

func (AddAppReplyValidationError) ErrorName

func (e AddAppReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddAppReplyValidationError) Field

Field function returns field value.

func (AddAppReplyValidationError) Key

Key function returns key value.

func (AddAppReplyValidationError) Reason

Reason function returns reason value.

type AddAppRequest

type AddAppRequest struct {
	Keyword       string   `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,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 (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

Cause function returns cause value.

func (AddAppRequestValidationError) Error

Error satisfies the builtin error interface

func (AddAppRequestValidationError) ErrorName

func (e AddAppRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddAppRequestValidationError) Field

Field function returns field value.

func (AddAppRequestValidationError) Key

Key function returns key value.

func (AddAppRequestValidationError) Reason

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"`
	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) Descriptor() ([]byte, []int)

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetAllowRegistry

func (x *App) GetAllowRegistry() bool

func (*App) GetChannels

func (x *App) GetChannels() []*App_Channel

func (*App) GetCopyright

func (x *App) GetCopyright() string

func (*App) GetCreatedAt

func (x *App) GetCreatedAt() uint32

func (*App) GetDescription

func (x *App) GetDescription() string

func (*App) GetFields

func (x *App) GetFields() []*App_Field

func (*App) GetId

func (x *App) GetId() uint32

func (*App) GetKeyword

func (x *App) GetKeyword() string
func (x *App) GetLogo() string

func (*App) GetName

func (x *App) GetName() string

func (*App) GetResource

func (x *App) GetResource() *v1.File

func (*App) GetStatus

func (x *App) GetStatus() bool

func (*App) GetUpdatedAt

func (x *App) GetUpdatedAt() uint32

func (*App) GetVersion

func (x *App) GetVersion() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

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

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

func (*App) Validate

func (m *App) Validate() error

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

func (m *App) ValidateAll() error

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"`
	// 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 (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

Cause function returns cause value.

func (App_ChannelValidationError) Error

Error satisfies the builtin error interface

func (App_ChannelValidationError) ErrorName

func (e App_ChannelValidationError) ErrorName() string

ErrorName returns error name.

func (App_ChannelValidationError) Field

Field function returns field value.

func (App_ChannelValidationError) Key

Key function returns key value.

func (App_ChannelValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use App_Field.ProtoReflect.Descriptor instead.

func (*App_Field) GetId

func (x *App_Field) GetId() uint32

func (*App_Field) GetKeyword

func (x *App_Field) GetKeyword() string

func (*App_Field) GetName

func (x *App_Field) GetName() string

func (*App_Field) GetType

func (x *App_Field) GetType() string

func (*App_Field) ProtoMessage

func (*App_Field) ProtoMessage()

func (*App_Field) ProtoReflect

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

func (*App_Field) Reset

func (x *App_Field) Reset()

func (*App_Field) String

func (x *App_Field) String() string

func (*App_Field) Validate

func (m *App_Field) Validate() error

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

func (m *App_Field) ValidateAll() error

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

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

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

Cause function returns cause value.

func (DeleteAppRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteAppRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteAppRequestValidationError) Field

Field function returns field value.

func (DeleteAppRequestValidationError) Key

Key function returns key value.

func (DeleteAppRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetAppByKeywordRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAppByKeywordRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAppByKeywordRequestValidationError) Field

Field function returns field value.

func (GetAppByKeywordRequestValidationError) Key

Key function returns key value.

func (GetAppByKeywordRequestValidationError) Reason

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

Cause function returns cause value.

func (PageAppReplyValidationError) Error

Error satisfies the builtin error interface

func (PageAppReplyValidationError) ErrorName

func (e PageAppReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageAppReplyValidationError) Field

Field function returns field value.

func (PageAppReplyValidationError) Key

Key function returns key value.

func (PageAppReplyValidationError) Reason

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

Cause function returns cause value.

func (PageAppRequestValidationError) Error

Error satisfies the builtin error interface

func (PageAppRequestValidationError) ErrorName

func (e PageAppRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PageAppRequestValidationError) Field

Field function returns field value.

func (PageAppRequestValidationError) Key

Key function returns key value.

func (PageAppRequestValidationError) Reason

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 (*ServiceHTTPClientImpl) DeleteApp

func (*ServiceHTTPClientImpl) GetAppByKeyword

func (c *ServiceHTTPClientImpl) GetAppByKeyword(ctx context.Context, in *GetAppByKeywordRequest, opts ...http.CallOption) (*App, error)

func (*ServiceHTTPClientImpl) PageApp

func (*ServiceHTTPClientImpl) UpdateApp

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) DeleteApp

func (UnimplementedServiceServer) GetAppByKeyword

func (UnimplementedServiceServer) PageApp

func (UnimplementedServiceServer) UpdateApp

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"`
	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 (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

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

Cause function returns cause value.

func (UpdateAppRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAppRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAppRequestValidationError) Field

Field function returns field value.

func (UpdateAppRequestValidationError) Key

Key function returns key value.

func (UpdateAppRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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