app_config

package
v0.0.0-...-3f826f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AppConfigService_ListAppConfig_FullMethodName        = "/resource.api.app_config.AppConfigService/ListAppConfig"
	AppConfigService_GetAppConfig_FullMethodName         = "/resource.api.app_config.AppConfigService/GetAppConfig"
	AppConfigService_CreateAppConfig_FullMethodName      = "/resource.api.app_config.AppConfigService/CreateAppConfig"
	AppConfigService_UpdateAppConfig_FullMethodName      = "/resource.api.app_config.AppConfigService/UpdateAppConfig"
	AppConfigService_RecalcAppConfigUsage_FullMethodName = "/resource.api.app_config.AppConfigService/RecalcAppConfigUsage"
)
View Source
const OperationAppConfigServiceCreateAppConfig = "/resource.api.app_config.AppConfigService/CreateAppConfig"
View Source
const OperationAppConfigServiceGetAppConfig = "/resource.api.app_config.AppConfigService/GetAppConfig"
View Source
const OperationAppConfigServiceListAppConfig = "/resource.api.app_config.AppConfigService/ListAppConfig"
View Source
const OperationAppConfigServiceRecalcAppConfigUsage = "/resource.api.app_config.AppConfigService/RecalcAppConfigUsage"
View Source
const OperationAppConfigServiceUpdateAppConfig = "/resource.api.app_config.AppConfigService/UpdateAppConfig"

Variables

View Source
var AppConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "resource.api.app_config.AppConfigService",
	HandlerType: (*AppConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAppConfig",
			Handler:    _AppConfigService_ListAppConfig_Handler,
		},
		{
			MethodName: "GetAppConfig",
			Handler:    _AppConfigService_GetAppConfig_Handler,
		},
		{
			MethodName: "CreateAppConfig",
			Handler:    _AppConfigService_CreateAppConfig_Handler,
		},
		{
			MethodName: "UpdateAppConfig",
			Handler:    _AppConfigService_UpdateAppConfig_Handler,
		},
		{
			MethodName: "RecalcAppConfigUsage",
			Handler:    _AppConfigService_RecalcAppConfigUsage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/app_config/proto/app_config_service.proto",
}

AppConfigService_ServiceDesc is the grpc.ServiceDesc for AppConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_app_config_proto_app_config_proto protoreflect.FileDescriptor
View Source
var File_api_app_config_proto_app_config_service_proto protoreflect.FileDescriptor

Functions

func RegisterAppConfigServiceHTTPServer

func RegisterAppConfigServiceHTTPServer(s *http.Server, srv AppConfigServiceHTTPServer)

func RegisterAppConfigServiceServer

func RegisterAppConfigServiceServer(s grpc.ServiceRegistrar, srv AppConfigServiceServer)

Types

type AppConfigServiceClient

type AppConfigServiceClient interface {
	// ListAppConfig 分页查询应用配置
	ListAppConfig(ctx context.Context, in *ListAppConfigRequest, opts ...grpc.CallOption) (*ListAppConfigResponse, error)
	// GetAppConfig 按 app 读取应用配置
	GetAppConfig(ctx context.Context, in *GetAppConfigRequest, opts ...grpc.CallOption) (*GetAppConfigResponse, error)
	// CreateAppConfig 创建应用配置
	CreateAppConfig(ctx context.Context, in *CreateAppConfigRequest, opts ...grpc.CallOption) (*CreateAppConfigResponse, error)
	// UpdateAppConfig 更新应用配置(写动词自带缓存延迟双删)
	UpdateAppConfig(ctx context.Context, in *UpdateAppConfigRequest, opts ...grpc.CallOption) (*UpdateAppConfigResponse, error)
	// RecalcAppConfigUsage 按明细重算已用量(对账,纠正 used_bytes 漂移)
	RecalcAppConfigUsage(ctx context.Context, in *RecalcAppConfigUsageRequest, opts ...grpc.CallOption) (*RecalcAppConfigUsageResponse, error)
}

AppConfigServiceClient is the client API for AppConfigService 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.

约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。

type AppConfigServiceHTTPClient

type AppConfigServiceHTTPClient interface {
	CreateAppConfig(ctx context.Context, req *CreateAppConfigRequest, opts ...http.CallOption) (rsp *CreateAppConfigResponse, err error)
	GetAppConfig(ctx context.Context, req *GetAppConfigRequest, opts ...http.CallOption) (rsp *GetAppConfigResponse, err error)
	ListAppConfig(ctx context.Context, req *ListAppConfigRequest, opts ...http.CallOption) (rsp *ListAppConfigResponse, err error)
	RecalcAppConfigUsage(ctx context.Context, req *RecalcAppConfigUsageRequest, opts ...http.CallOption) (rsp *RecalcAppConfigUsageResponse, err error)
	UpdateAppConfig(ctx context.Context, req *UpdateAppConfigRequest, opts ...http.CallOption) (rsp *UpdateAppConfigResponse, err error)
}

func NewAppConfigServiceHTTPClient

func NewAppConfigServiceHTTPClient(client *http.Client) AppConfigServiceHTTPClient

type AppConfigServiceHTTPClientImpl

type AppConfigServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AppConfigServiceHTTPClientImpl) CreateAppConfig

func (*AppConfigServiceHTTPClientImpl) GetAppConfig

func (*AppConfigServiceHTTPClientImpl) ListAppConfig

func (*AppConfigServiceHTTPClientImpl) RecalcAppConfigUsage

func (*AppConfigServiceHTTPClientImpl) UpdateAppConfig

type AppConfigServiceHTTPServer

type AppConfigServiceHTTPServer interface {
	// CreateAppConfig CreateAppConfig 创建应用配置
	CreateAppConfig(context.Context, *CreateAppConfigRequest) (*CreateAppConfigResponse, error)
	// GetAppConfig GetAppConfig 按 app 读取应用配置
	GetAppConfig(context.Context, *GetAppConfigRequest) (*GetAppConfigResponse, error)
	// ListAppConfig ListAppConfig 分页查询应用配置
	ListAppConfig(context.Context, *ListAppConfigRequest) (*ListAppConfigResponse, error)
	// RecalcAppConfigUsage RecalcAppConfigUsage 按明细重算已用量(对账,纠正 used_bytes 漂移)
	RecalcAppConfigUsage(context.Context, *RecalcAppConfigUsageRequest) (*RecalcAppConfigUsageResponse, error)
	// UpdateAppConfig UpdateAppConfig 更新应用配置(写动词自带缓存延迟双删)
	UpdateAppConfig(context.Context, *UpdateAppConfigRequest) (*UpdateAppConfigResponse, error)
}

type AppConfigServiceServer

type AppConfigServiceServer interface {
	// ListAppConfig 分页查询应用配置
	ListAppConfig(context.Context, *ListAppConfigRequest) (*ListAppConfigResponse, error)
	// GetAppConfig 按 app 读取应用配置
	GetAppConfig(context.Context, *GetAppConfigRequest) (*GetAppConfigResponse, error)
	// CreateAppConfig 创建应用配置
	CreateAppConfig(context.Context, *CreateAppConfigRequest) (*CreateAppConfigResponse, error)
	// UpdateAppConfig 更新应用配置(写动词自带缓存延迟双删)
	UpdateAppConfig(context.Context, *UpdateAppConfigRequest) (*UpdateAppConfigResponse, error)
	// RecalcAppConfigUsage 按明细重算已用量(对账,纠正 used_bytes 漂移)
	RecalcAppConfigUsage(context.Context, *RecalcAppConfigUsageRequest) (*RecalcAppConfigUsageResponse, error)
	// contains filtered or unexported methods
}

AppConfigServiceServer is the server API for AppConfigService service. All implementations must embed UnimplementedAppConfigServiceServer for forward compatibility.

约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。

type AppConfigView

type AppConfigView struct {
	Id                 uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	App                string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	StoreKeyword       string `protobuf:"bytes,3,opt,name=store_keyword,json=storeKeyword,proto3" json:"store_keyword,omitempty"`
	ExportStoreKeyword string `protobuf:"bytes,4,opt,name=export_store_keyword,json=exportStoreKeyword,proto3" json:"export_store_keyword,omitempty"` // 导出产物的存储后端(必填)
	DefaultAccept      string `protobuf:"bytes,5,opt,name=default_accept,json=defaultAccept,proto3" json:"default_accept,omitempty"`
	DefaultMaxSize     uint32 `protobuf:"varint,6,opt,name=default_max_size,json=defaultMaxSize,proto3" json:"default_max_size,omitempty"`
	TempUrlTtl         uint32 `protobuf:"varint,7,opt,name=temp_url_ttl,json=tempUrlTtl,proto3" json:"temp_url_ttl,omitempty"`
	ExportTtl          uint32 `protobuf:"varint,8,opt,name=export_ttl,json=exportTtl,proto3" json:"export_ttl,omitempty"`
	Status             uint32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"`
	Quota              uint64 `protobuf:"varint,13,opt,name=quota,proto3" json:"quota,omitempty"`                          // 存储配额(字节);0=不限
	UsedBytes          uint64 `protobuf:"varint,14,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"` // 已用量(字节);只读
	UpdatedBy          uint32 `protobuf:"varint,10,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	CreatedAt          uint32 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          uint32 `protobuf:"varint,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

AppConfigView 应用配置视图

func (*AppConfigView) Descriptor deprecated

func (*AppConfigView) Descriptor() ([]byte, []int)

Deprecated: Use AppConfigView.ProtoReflect.Descriptor instead.

func (*AppConfigView) GetApp

func (x *AppConfigView) GetApp() string

func (*AppConfigView) GetCreatedAt

func (x *AppConfigView) GetCreatedAt() uint32

func (*AppConfigView) GetDefaultAccept

func (x *AppConfigView) GetDefaultAccept() string

func (*AppConfigView) GetDefaultMaxSize

func (x *AppConfigView) GetDefaultMaxSize() uint32

func (*AppConfigView) GetExportStoreKeyword

func (x *AppConfigView) GetExportStoreKeyword() string

func (*AppConfigView) GetExportTtl

func (x *AppConfigView) GetExportTtl() uint32

func (*AppConfigView) GetId

func (x *AppConfigView) GetId() uint32

func (*AppConfigView) GetQuota

func (x *AppConfigView) GetQuota() uint64

func (*AppConfigView) GetStatus

func (x *AppConfigView) GetStatus() uint32

func (*AppConfigView) GetStoreKeyword

func (x *AppConfigView) GetStoreKeyword() string

func (*AppConfigView) GetTempUrlTtl

func (x *AppConfigView) GetTempUrlTtl() uint32

func (*AppConfigView) GetUpdatedAt

func (x *AppConfigView) GetUpdatedAt() uint32

func (*AppConfigView) GetUpdatedBy

func (x *AppConfigView) GetUpdatedBy() uint32

func (*AppConfigView) GetUsedBytes

func (x *AppConfigView) GetUsedBytes() uint64

func (*AppConfigView) ProtoMessage

func (*AppConfigView) ProtoMessage()

func (*AppConfigView) ProtoReflect

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

func (*AppConfigView) Reset

func (x *AppConfigView) Reset()

func (*AppConfigView) String

func (x *AppConfigView) String() string

func (*AppConfigView) Validate

func (m *AppConfigView) Validate() error

Validate checks the field values on AppConfigView 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 (*AppConfigView) ValidateAll

func (m *AppConfigView) ValidateAll() error

ValidateAll checks the field values on AppConfigView 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 AppConfigViewMultiError, or nil if none found.

type AppConfigViewMultiError

type AppConfigViewMultiError []error

AppConfigViewMultiError is an error wrapping multiple validation errors returned by AppConfigView.ValidateAll() if the designated constraints aren't met.

func (AppConfigViewMultiError) AllErrors

func (m AppConfigViewMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppConfigViewMultiError) Error

func (m AppConfigViewMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppConfigViewValidationError

type AppConfigViewValidationError struct {
	// contains filtered or unexported fields
}

AppConfigViewValidationError is the validation error returned by AppConfigView.Validate if the designated constraints aren't met.

func (AppConfigViewValidationError) Cause

Cause function returns cause value.

func (AppConfigViewValidationError) Error

Error satisfies the builtin error interface

func (AppConfigViewValidationError) ErrorName

func (e AppConfigViewValidationError) ErrorName() string

ErrorName returns error name.

func (AppConfigViewValidationError) Field

Field function returns field value.

func (AppConfigViewValidationError) Key

Key function returns key value.

func (AppConfigViewValidationError) Reason

Reason function returns reason value.

type CreateAppConfigRequest

type CreateAppConfigRequest struct {
	StoreKeyword       string `protobuf:"bytes,2,opt,name=store_keyword,json=storeKeyword,proto3" json:"store_keyword,omitempty"`
	ExportStoreKeyword string `protobuf:"bytes,3,opt,name=export_store_keyword,json=exportStoreKeyword,proto3" json:"export_store_keyword,omitempty"`
	DefaultAccept      string `protobuf:"bytes,4,opt,name=default_accept,json=defaultAccept,proto3" json:"default_accept,omitempty"`
	DefaultMaxSize     uint32 `protobuf:"varint,5,opt,name=default_max_size,json=defaultMaxSize,proto3" json:"default_max_size,omitempty"`
	TempUrlTtl         uint32 `protobuf:"varint,6,opt,name=temp_url_ttl,json=tempUrlTtl,proto3" json:"temp_url_ttl,omitempty"`
	ExportTtl          uint32 `protobuf:"varint,7,opt,name=export_ttl,json=exportTtl,proto3" json:"export_ttl,omitempty"`
	Status             uint32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	Quota              uint64 `protobuf:"varint,9,opt,name=quota,proto3" json:"quota,omitempty"` // 存储配额(字节);0=不限
	// contains filtered or unexported fields
}

---- CreateAppConfig ----

func (*CreateAppConfigRequest) Descriptor deprecated

func (*CreateAppConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAppConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateAppConfigRequest) GetDefaultAccept

func (x *CreateAppConfigRequest) GetDefaultAccept() string

func (*CreateAppConfigRequest) GetDefaultMaxSize

func (x *CreateAppConfigRequest) GetDefaultMaxSize() uint32

func (*CreateAppConfigRequest) GetExportStoreKeyword

func (x *CreateAppConfigRequest) GetExportStoreKeyword() string

func (*CreateAppConfigRequest) GetExportTtl

func (x *CreateAppConfigRequest) GetExportTtl() uint32

func (*CreateAppConfigRequest) GetQuota

func (x *CreateAppConfigRequest) GetQuota() uint64

func (*CreateAppConfigRequest) GetStatus

func (x *CreateAppConfigRequest) GetStatus() uint32

func (*CreateAppConfigRequest) GetStoreKeyword

func (x *CreateAppConfigRequest) GetStoreKeyword() string

func (*CreateAppConfigRequest) GetTempUrlTtl

func (x *CreateAppConfigRequest) GetTempUrlTtl() uint32

func (*CreateAppConfigRequest) ProtoMessage

func (*CreateAppConfigRequest) ProtoMessage()

func (*CreateAppConfigRequest) ProtoReflect

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

func (*CreateAppConfigRequest) Reset

func (x *CreateAppConfigRequest) Reset()

func (*CreateAppConfigRequest) String

func (x *CreateAppConfigRequest) String() string

func (*CreateAppConfigRequest) Validate

func (m *CreateAppConfigRequest) Validate() error

Validate checks the field values on CreateAppConfigRequest 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 (*CreateAppConfigRequest) ValidateAll

func (m *CreateAppConfigRequest) ValidateAll() error

ValidateAll checks the field values on CreateAppConfigRequest 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 CreateAppConfigRequestMultiError, or nil if none found.

type CreateAppConfigRequestMultiError

type CreateAppConfigRequestMultiError []error

CreateAppConfigRequestMultiError is an error wrapping multiple validation errors returned by CreateAppConfigRequest.ValidateAll() if the designated constraints aren't met.

func (CreateAppConfigRequestMultiError) AllErrors

func (m CreateAppConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAppConfigRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAppConfigRequestValidationError

type CreateAppConfigRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateAppConfigRequestValidationError is the validation error returned by CreateAppConfigRequest.Validate if the designated constraints aren't met.

func (CreateAppConfigRequestValidationError) Cause

Cause function returns cause value.

func (CreateAppConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAppConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAppConfigRequestValidationError) Field

Field function returns field value.

func (CreateAppConfigRequestValidationError) Key

Key function returns key value.

func (CreateAppConfigRequestValidationError) Reason

Reason function returns reason value.

type CreateAppConfigResponse

type CreateAppConfigResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAppConfigResponse) Descriptor deprecated

func (*CreateAppConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAppConfigResponse.ProtoReflect.Descriptor instead.

func (*CreateAppConfigResponse) GetId

func (x *CreateAppConfigResponse) GetId() uint32

func (*CreateAppConfigResponse) ProtoMessage

func (*CreateAppConfigResponse) ProtoMessage()

func (*CreateAppConfigResponse) ProtoReflect

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

func (*CreateAppConfigResponse) Reset

func (x *CreateAppConfigResponse) Reset()

func (*CreateAppConfigResponse) String

func (x *CreateAppConfigResponse) String() string

func (*CreateAppConfigResponse) Validate

func (m *CreateAppConfigResponse) Validate() error

Validate checks the field values on CreateAppConfigResponse 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 (*CreateAppConfigResponse) ValidateAll

func (m *CreateAppConfigResponse) ValidateAll() error

ValidateAll checks the field values on CreateAppConfigResponse 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 CreateAppConfigResponseMultiError, or nil if none found.

type CreateAppConfigResponseMultiError

type CreateAppConfigResponseMultiError []error

CreateAppConfigResponseMultiError is an error wrapping multiple validation errors returned by CreateAppConfigResponse.ValidateAll() if the designated constraints aren't met.

func (CreateAppConfigResponseMultiError) AllErrors

func (m CreateAppConfigResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAppConfigResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAppConfigResponseValidationError

type CreateAppConfigResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateAppConfigResponseValidationError is the validation error returned by CreateAppConfigResponse.Validate if the designated constraints aren't met.

func (CreateAppConfigResponseValidationError) Cause

Cause function returns cause value.

func (CreateAppConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateAppConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateAppConfigResponseValidationError) Field

Field function returns field value.

func (CreateAppConfigResponseValidationError) Key

Key function returns key value.

func (CreateAppConfigResponseValidationError) Reason

Reason function returns reason value.

type GetAppConfigRequest

type GetAppConfigRequest struct {
	// contains filtered or unexported fields
}

---- GetAppConfig ----

func (*GetAppConfigRequest) Descriptor deprecated

func (*GetAppConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAppConfigRequest.ProtoReflect.Descriptor instead.

func (*GetAppConfigRequest) ProtoMessage

func (*GetAppConfigRequest) ProtoMessage()

func (*GetAppConfigRequest) ProtoReflect

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

func (*GetAppConfigRequest) Reset

func (x *GetAppConfigRequest) Reset()

func (*GetAppConfigRequest) String

func (x *GetAppConfigRequest) String() string

func (*GetAppConfigRequest) Validate

func (m *GetAppConfigRequest) Validate() error

Validate checks the field values on GetAppConfigRequest 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 (*GetAppConfigRequest) ValidateAll

func (m *GetAppConfigRequest) ValidateAll() error

ValidateAll checks the field values on GetAppConfigRequest 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 GetAppConfigRequestMultiError, or nil if none found.

type GetAppConfigRequestMultiError

type GetAppConfigRequestMultiError []error

GetAppConfigRequestMultiError is an error wrapping multiple validation errors returned by GetAppConfigRequest.ValidateAll() if the designated constraints aren't met.

func (GetAppConfigRequestMultiError) AllErrors

func (m GetAppConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAppConfigRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAppConfigRequestValidationError

type GetAppConfigRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAppConfigRequestValidationError is the validation error returned by GetAppConfigRequest.Validate if the designated constraints aren't met.

func (GetAppConfigRequestValidationError) Cause

Cause function returns cause value.

func (GetAppConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAppConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAppConfigRequestValidationError) Field

Field function returns field value.

func (GetAppConfigRequestValidationError) Key

Key function returns key value.

func (GetAppConfigRequestValidationError) Reason

Reason function returns reason value.

type GetAppConfigResponse

type GetAppConfigResponse struct {
	AppConfig *AppConfigView `protobuf:"bytes,1,opt,name=app_config,json=appConfig,proto3" json:"app_config,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAppConfigResponse) Descriptor deprecated

func (*GetAppConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAppConfigResponse.ProtoReflect.Descriptor instead.

func (*GetAppConfigResponse) GetAppConfig

func (x *GetAppConfigResponse) GetAppConfig() *AppConfigView

func (*GetAppConfigResponse) ProtoMessage

func (*GetAppConfigResponse) ProtoMessage()

func (*GetAppConfigResponse) ProtoReflect

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

func (*GetAppConfigResponse) Reset

func (x *GetAppConfigResponse) Reset()

func (*GetAppConfigResponse) String

func (x *GetAppConfigResponse) String() string

func (*GetAppConfigResponse) Validate

func (m *GetAppConfigResponse) Validate() error

Validate checks the field values on GetAppConfigResponse 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 (*GetAppConfigResponse) ValidateAll

func (m *GetAppConfigResponse) ValidateAll() error

ValidateAll checks the field values on GetAppConfigResponse 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 GetAppConfigResponseMultiError, or nil if none found.

type GetAppConfigResponseMultiError

type GetAppConfigResponseMultiError []error

GetAppConfigResponseMultiError is an error wrapping multiple validation errors returned by GetAppConfigResponse.ValidateAll() if the designated constraints aren't met.

func (GetAppConfigResponseMultiError) AllErrors

func (m GetAppConfigResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAppConfigResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAppConfigResponseValidationError

type GetAppConfigResponseValidationError struct {
	// contains filtered or unexported fields
}

GetAppConfigResponseValidationError is the validation error returned by GetAppConfigResponse.Validate if the designated constraints aren't met.

func (GetAppConfigResponseValidationError) Cause

Cause function returns cause value.

func (GetAppConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAppConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAppConfigResponseValidationError) Field

Field function returns field value.

func (GetAppConfigResponseValidationError) Key

Key function returns key value.

func (GetAppConfigResponseValidationError) Reason

Reason function returns reason value.

type ListAppConfigRequest

type ListAppConfigRequest 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"`
	Status   *uint32 `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"` // 可选过滤(0 停用 / 1 启用,均可过滤)
	// contains filtered or unexported fields
}

---- ListAppConfig ---- app 取自请求上下文(X-App-Key)。

func (*ListAppConfigRequest) Descriptor deprecated

func (*ListAppConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAppConfigRequest.ProtoReflect.Descriptor instead.

func (*ListAppConfigRequest) GetPage

func (x *ListAppConfigRequest) GetPage() uint32

func (*ListAppConfigRequest) GetPageSize

func (x *ListAppConfigRequest) GetPageSize() uint32

func (*ListAppConfigRequest) GetStatus

func (x *ListAppConfigRequest) GetStatus() uint32

func (*ListAppConfigRequest) ProtoMessage

func (*ListAppConfigRequest) ProtoMessage()

func (*ListAppConfigRequest) ProtoReflect

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

func (*ListAppConfigRequest) Reset

func (x *ListAppConfigRequest) Reset()

func (*ListAppConfigRequest) String

func (x *ListAppConfigRequest) String() string

func (*ListAppConfigRequest) Validate

func (m *ListAppConfigRequest) Validate() error

Validate checks the field values on ListAppConfigRequest 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 (*ListAppConfigRequest) ValidateAll

func (m *ListAppConfigRequest) ValidateAll() error

ValidateAll checks the field values on ListAppConfigRequest 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 ListAppConfigRequestMultiError, or nil if none found.

type ListAppConfigRequestMultiError

type ListAppConfigRequestMultiError []error

ListAppConfigRequestMultiError is an error wrapping multiple validation errors returned by ListAppConfigRequest.ValidateAll() if the designated constraints aren't met.

func (ListAppConfigRequestMultiError) AllErrors

func (m ListAppConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAppConfigRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAppConfigRequestValidationError

type ListAppConfigRequestValidationError struct {
	// contains filtered or unexported fields
}

ListAppConfigRequestValidationError is the validation error returned by ListAppConfigRequest.Validate if the designated constraints aren't met.

func (ListAppConfigRequestValidationError) Cause

Cause function returns cause value.

func (ListAppConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAppConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAppConfigRequestValidationError) Field

Field function returns field value.

func (ListAppConfigRequestValidationError) Key

Key function returns key value.

func (ListAppConfigRequestValidationError) Reason

Reason function returns reason value.

type ListAppConfigResponse

type ListAppConfigResponse struct {
	List  []*AppConfigView `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total uint32           `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAppConfigResponse) Descriptor deprecated

func (*ListAppConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAppConfigResponse.ProtoReflect.Descriptor instead.

func (*ListAppConfigResponse) GetList

func (x *ListAppConfigResponse) GetList() []*AppConfigView

func (*ListAppConfigResponse) GetTotal

func (x *ListAppConfigResponse) GetTotal() uint32

func (*ListAppConfigResponse) ProtoMessage

func (*ListAppConfigResponse) ProtoMessage()

func (*ListAppConfigResponse) ProtoReflect

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

func (*ListAppConfigResponse) Reset

func (x *ListAppConfigResponse) Reset()

func (*ListAppConfigResponse) String

func (x *ListAppConfigResponse) String() string

func (*ListAppConfigResponse) Validate

func (m *ListAppConfigResponse) Validate() error

Validate checks the field values on ListAppConfigResponse 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 (*ListAppConfigResponse) ValidateAll

func (m *ListAppConfigResponse) ValidateAll() error

ValidateAll checks the field values on ListAppConfigResponse 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 ListAppConfigResponseMultiError, or nil if none found.

type ListAppConfigResponseMultiError

type ListAppConfigResponseMultiError []error

ListAppConfigResponseMultiError is an error wrapping multiple validation errors returned by ListAppConfigResponse.ValidateAll() if the designated constraints aren't met.

func (ListAppConfigResponseMultiError) AllErrors

func (m ListAppConfigResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAppConfigResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAppConfigResponseValidationError

type ListAppConfigResponseValidationError struct {
	// contains filtered or unexported fields
}

ListAppConfigResponseValidationError is the validation error returned by ListAppConfigResponse.Validate if the designated constraints aren't met.

func (ListAppConfigResponseValidationError) Cause

Cause function returns cause value.

func (ListAppConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAppConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAppConfigResponseValidationError) Field

Field function returns field value.

func (ListAppConfigResponseValidationError) Key

Key function returns key value.

func (ListAppConfigResponseValidationError) Reason

Reason function returns reason value.

type RecalcAppConfigUsageRequest

type RecalcAppConfigUsageRequest struct {
	// contains filtered or unexported fields
}

---- RecalcAppConfigUsage ---- app 取自请求上下文(X-App-Key);按明细重算 used_bytes,用于对账纠漂移。

func (*RecalcAppConfigUsageRequest) Descriptor deprecated

func (*RecalcAppConfigUsageRequest) Descriptor() ([]byte, []int)

Deprecated: Use RecalcAppConfigUsageRequest.ProtoReflect.Descriptor instead.

func (*RecalcAppConfigUsageRequest) ProtoMessage

func (*RecalcAppConfigUsageRequest) ProtoMessage()

func (*RecalcAppConfigUsageRequest) ProtoReflect

func (*RecalcAppConfigUsageRequest) Reset

func (x *RecalcAppConfigUsageRequest) Reset()

func (*RecalcAppConfigUsageRequest) String

func (x *RecalcAppConfigUsageRequest) String() string

func (*RecalcAppConfigUsageRequest) Validate

func (m *RecalcAppConfigUsageRequest) Validate() error

Validate checks the field values on RecalcAppConfigUsageRequest 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 (*RecalcAppConfigUsageRequest) ValidateAll

func (m *RecalcAppConfigUsageRequest) ValidateAll() error

ValidateAll checks the field values on RecalcAppConfigUsageRequest 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 RecalcAppConfigUsageRequestMultiError, or nil if none found.

type RecalcAppConfigUsageRequestMultiError

type RecalcAppConfigUsageRequestMultiError []error

RecalcAppConfigUsageRequestMultiError is an error wrapping multiple validation errors returned by RecalcAppConfigUsageRequest.ValidateAll() if the designated constraints aren't met.

func (RecalcAppConfigUsageRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RecalcAppConfigUsageRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RecalcAppConfigUsageRequestValidationError

type RecalcAppConfigUsageRequestValidationError struct {
	// contains filtered or unexported fields
}

RecalcAppConfigUsageRequestValidationError is the validation error returned by RecalcAppConfigUsageRequest.Validate if the designated constraints aren't met.

func (RecalcAppConfigUsageRequestValidationError) Cause

Cause function returns cause value.

func (RecalcAppConfigUsageRequestValidationError) Error

Error satisfies the builtin error interface

func (RecalcAppConfigUsageRequestValidationError) ErrorName

ErrorName returns error name.

func (RecalcAppConfigUsageRequestValidationError) Field

Field function returns field value.

func (RecalcAppConfigUsageRequestValidationError) Key

Key function returns key value.

func (RecalcAppConfigUsageRequestValidationError) Reason

Reason function returns reason value.

type RecalcAppConfigUsageResponse

type RecalcAppConfigUsageResponse struct {
	App       string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	UsedBytes uint64 `protobuf:"varint,2,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*RecalcAppConfigUsageResponse) Descriptor deprecated

func (*RecalcAppConfigUsageResponse) Descriptor() ([]byte, []int)

Deprecated: Use RecalcAppConfigUsageResponse.ProtoReflect.Descriptor instead.

func (*RecalcAppConfigUsageResponse) GetApp

func (*RecalcAppConfigUsageResponse) GetUsedBytes

func (x *RecalcAppConfigUsageResponse) GetUsedBytes() uint64

func (*RecalcAppConfigUsageResponse) ProtoMessage

func (*RecalcAppConfigUsageResponse) ProtoMessage()

func (*RecalcAppConfigUsageResponse) ProtoReflect

func (*RecalcAppConfigUsageResponse) Reset

func (x *RecalcAppConfigUsageResponse) Reset()

func (*RecalcAppConfigUsageResponse) String

func (*RecalcAppConfigUsageResponse) Validate

func (m *RecalcAppConfigUsageResponse) Validate() error

Validate checks the field values on RecalcAppConfigUsageResponse 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 (*RecalcAppConfigUsageResponse) ValidateAll

func (m *RecalcAppConfigUsageResponse) ValidateAll() error

ValidateAll checks the field values on RecalcAppConfigUsageResponse 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 RecalcAppConfigUsageResponseMultiError, or nil if none found.

type RecalcAppConfigUsageResponseMultiError

type RecalcAppConfigUsageResponseMultiError []error

RecalcAppConfigUsageResponseMultiError is an error wrapping multiple validation errors returned by RecalcAppConfigUsageResponse.ValidateAll() if the designated constraints aren't met.

func (RecalcAppConfigUsageResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (RecalcAppConfigUsageResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RecalcAppConfigUsageResponseValidationError

type RecalcAppConfigUsageResponseValidationError struct {
	// contains filtered or unexported fields
}

RecalcAppConfigUsageResponseValidationError is the validation error returned by RecalcAppConfigUsageResponse.Validate if the designated constraints aren't met.

func (RecalcAppConfigUsageResponseValidationError) Cause

Cause function returns cause value.

func (RecalcAppConfigUsageResponseValidationError) Error

Error satisfies the builtin error interface

func (RecalcAppConfigUsageResponseValidationError) ErrorName

ErrorName returns error name.

func (RecalcAppConfigUsageResponseValidationError) Field

Field function returns field value.

func (RecalcAppConfigUsageResponseValidationError) Key

Key function returns key value.

func (RecalcAppConfigUsageResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAppConfigServiceServer

type UnimplementedAppConfigServiceServer struct{}

UnimplementedAppConfigServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAppConfigServiceServer) CreateAppConfig

func (UnimplementedAppConfigServiceServer) GetAppConfig

func (UnimplementedAppConfigServiceServer) ListAppConfig

func (UnimplementedAppConfigServiceServer) UpdateAppConfig

type UnsafeAppConfigServiceServer

type UnsafeAppConfigServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAppConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppConfigServiceServer will result in compilation errors.

type UpdateAppConfigRequest

type UpdateAppConfigRequest struct {
	StoreKeyword       *string `protobuf:"bytes,2,opt,name=store_keyword,json=storeKeyword,proto3,oneof" json:"store_keyword,omitempty"`
	ExportStoreKeyword *string `protobuf:"bytes,3,opt,name=export_store_keyword,json=exportStoreKeyword,proto3,oneof" json:"export_store_keyword,omitempty"`
	DefaultAccept      *string `protobuf:"bytes,4,opt,name=default_accept,json=defaultAccept,proto3,oneof" json:"default_accept,omitempty"`
	DefaultMaxSize     *uint32 `protobuf:"varint,5,opt,name=default_max_size,json=defaultMaxSize,proto3,oneof" json:"default_max_size,omitempty"`
	TempUrlTtl         *uint32 `protobuf:"varint,6,opt,name=temp_url_ttl,json=tempUrlTtl,proto3,oneof" json:"temp_url_ttl,omitempty"`
	ExportTtl          *uint32 `protobuf:"varint,7,opt,name=export_ttl,json=exportTtl,proto3,oneof" json:"export_ttl,omitempty"`
	Status             *uint32 `protobuf:"varint,8,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Quota              *uint64 `protobuf:"varint,9,opt,name=quota,proto3,oneof" json:"quota,omitempty"` // 存储配额(字节);0=不限;传了才改
	// contains filtered or unexported fields
}

---- UpdateAppConfig ---- app 是唯一键(一个 app 只配置一次),取自请求上下文(X-App-Key),不需要 id。 局部更新:其余 optional——不传 = 该列不改;传了才校验。

func (*UpdateAppConfigRequest) Descriptor deprecated

func (*UpdateAppConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAppConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateAppConfigRequest) GetDefaultAccept

func (x *UpdateAppConfigRequest) GetDefaultAccept() string

func (*UpdateAppConfigRequest) GetDefaultMaxSize

func (x *UpdateAppConfigRequest) GetDefaultMaxSize() uint32

func (*UpdateAppConfigRequest) GetExportStoreKeyword

func (x *UpdateAppConfigRequest) GetExportStoreKeyword() string

func (*UpdateAppConfigRequest) GetExportTtl

func (x *UpdateAppConfigRequest) GetExportTtl() uint32

func (*UpdateAppConfigRequest) GetQuota

func (x *UpdateAppConfigRequest) GetQuota() uint64

func (*UpdateAppConfigRequest) GetStatus

func (x *UpdateAppConfigRequest) GetStatus() uint32

func (*UpdateAppConfigRequest) GetStoreKeyword

func (x *UpdateAppConfigRequest) GetStoreKeyword() string

func (*UpdateAppConfigRequest) GetTempUrlTtl

func (x *UpdateAppConfigRequest) GetTempUrlTtl() uint32

func (*UpdateAppConfigRequest) ProtoMessage

func (*UpdateAppConfigRequest) ProtoMessage()

func (*UpdateAppConfigRequest) ProtoReflect

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

func (*UpdateAppConfigRequest) Reset

func (x *UpdateAppConfigRequest) Reset()

func (*UpdateAppConfigRequest) String

func (x *UpdateAppConfigRequest) String() string

func (*UpdateAppConfigRequest) Validate

func (m *UpdateAppConfigRequest) Validate() error

Validate checks the field values on UpdateAppConfigRequest 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 (*UpdateAppConfigRequest) ValidateAll

func (m *UpdateAppConfigRequest) ValidateAll() error

ValidateAll checks the field values on UpdateAppConfigRequest 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 UpdateAppConfigRequestMultiError, or nil if none found.

type UpdateAppConfigRequestMultiError

type UpdateAppConfigRequestMultiError []error

UpdateAppConfigRequestMultiError is an error wrapping multiple validation errors returned by UpdateAppConfigRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateAppConfigRequestMultiError) AllErrors

func (m UpdateAppConfigRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAppConfigRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAppConfigRequestValidationError

type UpdateAppConfigRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateAppConfigRequestValidationError is the validation error returned by UpdateAppConfigRequest.Validate if the designated constraints aren't met.

func (UpdateAppConfigRequestValidationError) Cause

Cause function returns cause value.

func (UpdateAppConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateAppConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateAppConfigRequestValidationError) Field

Field function returns field value.

func (UpdateAppConfigRequestValidationError) Key

Key function returns key value.

func (UpdateAppConfigRequestValidationError) Reason

Reason function returns reason value.

type UpdateAppConfigResponse

type UpdateAppConfigResponse struct {
	App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAppConfigResponse) Descriptor deprecated

func (*UpdateAppConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAppConfigResponse.ProtoReflect.Descriptor instead.

func (*UpdateAppConfigResponse) GetApp

func (x *UpdateAppConfigResponse) GetApp() string

func (*UpdateAppConfigResponse) ProtoMessage

func (*UpdateAppConfigResponse) ProtoMessage()

func (*UpdateAppConfigResponse) ProtoReflect

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

func (*UpdateAppConfigResponse) Reset

func (x *UpdateAppConfigResponse) Reset()

func (*UpdateAppConfigResponse) String

func (x *UpdateAppConfigResponse) String() string

func (*UpdateAppConfigResponse) Validate

func (m *UpdateAppConfigResponse) Validate() error

Validate checks the field values on UpdateAppConfigResponse 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 (*UpdateAppConfigResponse) ValidateAll

func (m *UpdateAppConfigResponse) ValidateAll() error

ValidateAll checks the field values on UpdateAppConfigResponse 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 UpdateAppConfigResponseMultiError, or nil if none found.

type UpdateAppConfigResponseMultiError

type UpdateAppConfigResponseMultiError []error

UpdateAppConfigResponseMultiError is an error wrapping multiple validation errors returned by UpdateAppConfigResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateAppConfigResponseMultiError) AllErrors

func (m UpdateAppConfigResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateAppConfigResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateAppConfigResponseValidationError

type UpdateAppConfigResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateAppConfigResponseValidationError is the validation error returned by UpdateAppConfigResponse.Validate if the designated constraints aren't met.

func (UpdateAppConfigResponseValidationError) Cause

Cause function returns cause value.

func (UpdateAppConfigResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateAppConfigResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateAppConfigResponseValidationError) Field

Field function returns field value.

func (UpdateAppConfigResponseValidationError) Key

Key function returns key value.

func (UpdateAppConfigResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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