Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAppConfigServiceHTTPServer(s *http.Server, srv AppConfigServiceHTTPServer)
- func RegisterAppConfigServiceServer(s grpc.ServiceRegistrar, srv AppConfigServiceServer)
- type AppConfigServiceClient
- type AppConfigServiceHTTPClient
- type AppConfigServiceHTTPClientImpl
- func (c *AppConfigServiceHTTPClientImpl) CreateAppConfig(ctx context.Context, in *CreateAppConfigRequest, opts ...http.CallOption) (*CreateAppConfigResponse, error)
- func (c *AppConfigServiceHTTPClientImpl) GetAppConfig(ctx context.Context, in *GetAppConfigRequest, opts ...http.CallOption) (*GetAppConfigResponse, error)
- func (c *AppConfigServiceHTTPClientImpl) ListAppConfig(ctx context.Context, in *ListAppConfigRequest, opts ...http.CallOption) (*ListAppConfigResponse, error)
- func (c *AppConfigServiceHTTPClientImpl) RecalcAppConfigUsage(ctx context.Context, in *RecalcAppConfigUsageRequest, opts ...http.CallOption) (*RecalcAppConfigUsageResponse, error)
- func (c *AppConfigServiceHTTPClientImpl) UpdateAppConfig(ctx context.Context, in *UpdateAppConfigRequest, opts ...http.CallOption) (*UpdateAppConfigResponse, error)
- type AppConfigServiceHTTPServer
- type AppConfigServiceServer
- type AppConfigView
- func (*AppConfigView) Descriptor() ([]byte, []int)deprecated
- func (x *AppConfigView) GetApp() string
- func (x *AppConfigView) GetCreatedAt() uint32
- func (x *AppConfigView) GetDefaultAccept() string
- func (x *AppConfigView) GetDefaultMaxSize() uint32
- func (x *AppConfigView) GetExportStoreKeyword() string
- func (x *AppConfigView) GetExportTtl() uint32
- func (x *AppConfigView) GetId() uint32
- func (x *AppConfigView) GetQuota() uint64
- func (x *AppConfigView) GetStatus() uint32
- func (x *AppConfigView) GetStoreKeyword() string
- func (x *AppConfigView) GetTempUrlTtl() uint32
- func (x *AppConfigView) GetUpdatedAt() uint32
- func (x *AppConfigView) GetUpdatedBy() uint32
- func (x *AppConfigView) GetUsedBytes() uint64
- func (*AppConfigView) ProtoMessage()
- func (x *AppConfigView) ProtoReflect() protoreflect.Message
- func (x *AppConfigView) Reset()
- func (x *AppConfigView) String() string
- func (m *AppConfigView) Validate() error
- func (m *AppConfigView) ValidateAll() error
- type AppConfigViewMultiError
- type AppConfigViewValidationError
- func (e AppConfigViewValidationError) Cause() error
- func (e AppConfigViewValidationError) Error() string
- func (e AppConfigViewValidationError) ErrorName() string
- func (e AppConfigViewValidationError) Field() string
- func (e AppConfigViewValidationError) Key() bool
- func (e AppConfigViewValidationError) Reason() string
- type CreateAppConfigRequest
- func (*CreateAppConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAppConfigRequest) GetDefaultAccept() string
- func (x *CreateAppConfigRequest) GetDefaultMaxSize() uint32
- func (x *CreateAppConfigRequest) GetExportStoreKeyword() string
- func (x *CreateAppConfigRequest) GetExportTtl() uint32
- func (x *CreateAppConfigRequest) GetQuota() uint64
- func (x *CreateAppConfigRequest) GetStatus() uint32
- func (x *CreateAppConfigRequest) GetStoreKeyword() string
- func (x *CreateAppConfigRequest) GetTempUrlTtl() uint32
- func (*CreateAppConfigRequest) ProtoMessage()
- func (x *CreateAppConfigRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAppConfigRequest) Reset()
- func (x *CreateAppConfigRequest) String() string
- func (m *CreateAppConfigRequest) Validate() error
- func (m *CreateAppConfigRequest) ValidateAll() error
- type CreateAppConfigRequestMultiError
- type CreateAppConfigRequestValidationError
- func (e CreateAppConfigRequestValidationError) Cause() error
- func (e CreateAppConfigRequestValidationError) Error() string
- func (e CreateAppConfigRequestValidationError) ErrorName() string
- func (e CreateAppConfigRequestValidationError) Field() string
- func (e CreateAppConfigRequestValidationError) Key() bool
- func (e CreateAppConfigRequestValidationError) Reason() string
- type CreateAppConfigResponse
- func (*CreateAppConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAppConfigResponse) GetId() uint32
- func (*CreateAppConfigResponse) ProtoMessage()
- func (x *CreateAppConfigResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAppConfigResponse) Reset()
- func (x *CreateAppConfigResponse) String() string
- func (m *CreateAppConfigResponse) Validate() error
- func (m *CreateAppConfigResponse) ValidateAll() error
- type CreateAppConfigResponseMultiError
- type CreateAppConfigResponseValidationError
- func (e CreateAppConfigResponseValidationError) Cause() error
- func (e CreateAppConfigResponseValidationError) Error() string
- func (e CreateAppConfigResponseValidationError) ErrorName() string
- func (e CreateAppConfigResponseValidationError) Field() string
- func (e CreateAppConfigResponseValidationError) Key() bool
- func (e CreateAppConfigResponseValidationError) Reason() string
- type GetAppConfigRequest
- func (*GetAppConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetAppConfigRequest) ProtoMessage()
- func (x *GetAppConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetAppConfigRequest) Reset()
- func (x *GetAppConfigRequest) String() string
- func (m *GetAppConfigRequest) Validate() error
- func (m *GetAppConfigRequest) ValidateAll() error
- type GetAppConfigRequestMultiError
- type GetAppConfigRequestValidationError
- func (e GetAppConfigRequestValidationError) Cause() error
- func (e GetAppConfigRequestValidationError) Error() string
- func (e GetAppConfigRequestValidationError) ErrorName() string
- func (e GetAppConfigRequestValidationError) Field() string
- func (e GetAppConfigRequestValidationError) Key() bool
- func (e GetAppConfigRequestValidationError) Reason() string
- type GetAppConfigResponse
- func (*GetAppConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAppConfigResponse) GetAppConfig() *AppConfigView
- func (*GetAppConfigResponse) ProtoMessage()
- func (x *GetAppConfigResponse) ProtoReflect() protoreflect.Message
- func (x *GetAppConfigResponse) Reset()
- func (x *GetAppConfigResponse) String() string
- func (m *GetAppConfigResponse) Validate() error
- func (m *GetAppConfigResponse) ValidateAll() error
- type GetAppConfigResponseMultiError
- type GetAppConfigResponseValidationError
- func (e GetAppConfigResponseValidationError) Cause() error
- func (e GetAppConfigResponseValidationError) Error() string
- func (e GetAppConfigResponseValidationError) ErrorName() string
- func (e GetAppConfigResponseValidationError) Field() string
- func (e GetAppConfigResponseValidationError) Key() bool
- func (e GetAppConfigResponseValidationError) Reason() string
- type ListAppConfigRequest
- func (*ListAppConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAppConfigRequest) GetPage() uint32
- func (x *ListAppConfigRequest) GetPageSize() uint32
- func (x *ListAppConfigRequest) GetStatus() uint32
- func (*ListAppConfigRequest) ProtoMessage()
- func (x *ListAppConfigRequest) ProtoReflect() protoreflect.Message
- func (x *ListAppConfigRequest) Reset()
- func (x *ListAppConfigRequest) String() string
- func (m *ListAppConfigRequest) Validate() error
- func (m *ListAppConfigRequest) ValidateAll() error
- type ListAppConfigRequestMultiError
- type ListAppConfigRequestValidationError
- func (e ListAppConfigRequestValidationError) Cause() error
- func (e ListAppConfigRequestValidationError) Error() string
- func (e ListAppConfigRequestValidationError) ErrorName() string
- func (e ListAppConfigRequestValidationError) Field() string
- func (e ListAppConfigRequestValidationError) Key() bool
- func (e ListAppConfigRequestValidationError) Reason() string
- type ListAppConfigResponse
- func (*ListAppConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAppConfigResponse) GetList() []*AppConfigView
- func (x *ListAppConfigResponse) GetTotal() uint32
- func (*ListAppConfigResponse) ProtoMessage()
- func (x *ListAppConfigResponse) ProtoReflect() protoreflect.Message
- func (x *ListAppConfigResponse) Reset()
- func (x *ListAppConfigResponse) String() string
- func (m *ListAppConfigResponse) Validate() error
- func (m *ListAppConfigResponse) ValidateAll() error
- type ListAppConfigResponseMultiError
- type ListAppConfigResponseValidationError
- func (e ListAppConfigResponseValidationError) Cause() error
- func (e ListAppConfigResponseValidationError) Error() string
- func (e ListAppConfigResponseValidationError) ErrorName() string
- func (e ListAppConfigResponseValidationError) Field() string
- func (e ListAppConfigResponseValidationError) Key() bool
- func (e ListAppConfigResponseValidationError) Reason() string
- type RecalcAppConfigUsageRequest
- func (*RecalcAppConfigUsageRequest) Descriptor() ([]byte, []int)deprecated
- func (*RecalcAppConfigUsageRequest) ProtoMessage()
- func (x *RecalcAppConfigUsageRequest) ProtoReflect() protoreflect.Message
- func (x *RecalcAppConfigUsageRequest) Reset()
- func (x *RecalcAppConfigUsageRequest) String() string
- func (m *RecalcAppConfigUsageRequest) Validate() error
- func (m *RecalcAppConfigUsageRequest) ValidateAll() error
- type RecalcAppConfigUsageRequestMultiError
- type RecalcAppConfigUsageRequestValidationError
- func (e RecalcAppConfigUsageRequestValidationError) Cause() error
- func (e RecalcAppConfigUsageRequestValidationError) Error() string
- func (e RecalcAppConfigUsageRequestValidationError) ErrorName() string
- func (e RecalcAppConfigUsageRequestValidationError) Field() string
- func (e RecalcAppConfigUsageRequestValidationError) Key() bool
- func (e RecalcAppConfigUsageRequestValidationError) Reason() string
- type RecalcAppConfigUsageResponse
- func (*RecalcAppConfigUsageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RecalcAppConfigUsageResponse) GetApp() string
- func (x *RecalcAppConfigUsageResponse) GetUsedBytes() uint64
- func (*RecalcAppConfigUsageResponse) ProtoMessage()
- func (x *RecalcAppConfigUsageResponse) ProtoReflect() protoreflect.Message
- func (x *RecalcAppConfigUsageResponse) Reset()
- func (x *RecalcAppConfigUsageResponse) String() string
- func (m *RecalcAppConfigUsageResponse) Validate() error
- func (m *RecalcAppConfigUsageResponse) ValidateAll() error
- type RecalcAppConfigUsageResponseMultiError
- type RecalcAppConfigUsageResponseValidationError
- func (e RecalcAppConfigUsageResponseValidationError) Cause() error
- func (e RecalcAppConfigUsageResponseValidationError) Error() string
- func (e RecalcAppConfigUsageResponseValidationError) ErrorName() string
- func (e RecalcAppConfigUsageResponseValidationError) Field() string
- func (e RecalcAppConfigUsageResponseValidationError) Key() bool
- func (e RecalcAppConfigUsageResponseValidationError) Reason() string
- type UnimplementedAppConfigServiceServer
- func (UnimplementedAppConfigServiceServer) CreateAppConfig(context.Context, *CreateAppConfigRequest) (*CreateAppConfigResponse, error)
- func (UnimplementedAppConfigServiceServer) GetAppConfig(context.Context, *GetAppConfigRequest) (*GetAppConfigResponse, error)
- func (UnimplementedAppConfigServiceServer) ListAppConfig(context.Context, *ListAppConfigRequest) (*ListAppConfigResponse, error)
- func (UnimplementedAppConfigServiceServer) RecalcAppConfigUsage(context.Context, *RecalcAppConfigUsageRequest) (*RecalcAppConfigUsageResponse, error)
- func (UnimplementedAppConfigServiceServer) UpdateAppConfig(context.Context, *UpdateAppConfigRequest) (*UpdateAppConfigResponse, error)
- type UnsafeAppConfigServiceServer
- type UpdateAppConfigRequest
- func (*UpdateAppConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAppConfigRequest) GetDefaultAccept() string
- func (x *UpdateAppConfigRequest) GetDefaultMaxSize() uint32
- func (x *UpdateAppConfigRequest) GetExportStoreKeyword() string
- func (x *UpdateAppConfigRequest) GetExportTtl() uint32
- func (x *UpdateAppConfigRequest) GetQuota() uint64
- func (x *UpdateAppConfigRequest) GetStatus() uint32
- func (x *UpdateAppConfigRequest) GetStoreKeyword() string
- func (x *UpdateAppConfigRequest) GetTempUrlTtl() uint32
- func (*UpdateAppConfigRequest) ProtoMessage()
- func (x *UpdateAppConfigRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAppConfigRequest) Reset()
- func (x *UpdateAppConfigRequest) String() string
- func (m *UpdateAppConfigRequest) Validate() error
- func (m *UpdateAppConfigRequest) ValidateAll() error
- type UpdateAppConfigRequestMultiError
- type UpdateAppConfigRequestValidationError
- func (e UpdateAppConfigRequestValidationError) Cause() error
- func (e UpdateAppConfigRequestValidationError) Error() string
- func (e UpdateAppConfigRequestValidationError) ErrorName() string
- func (e UpdateAppConfigRequestValidationError) Field() string
- func (e UpdateAppConfigRequestValidationError) Key() bool
- func (e UpdateAppConfigRequestValidationError) Reason() string
- type UpdateAppConfigResponse
- func (*UpdateAppConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAppConfigResponse) GetApp() string
- func (*UpdateAppConfigResponse) ProtoMessage()
- func (x *UpdateAppConfigResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateAppConfigResponse) Reset()
- func (x *UpdateAppConfigResponse) String() string
- func (m *UpdateAppConfigResponse) Validate() error
- func (m *UpdateAppConfigResponse) ValidateAll() error
- type UpdateAppConfigResponseMultiError
- type UpdateAppConfigResponseValidationError
- func (e UpdateAppConfigResponseValidationError) Cause() error
- func (e UpdateAppConfigResponseValidationError) Error() string
- func (e UpdateAppConfigResponseValidationError) ErrorName() string
- func (e UpdateAppConfigResponseValidationError) Field() string
- func (e UpdateAppConfigResponseValidationError) Key() bool
- func (e UpdateAppConfigResponseValidationError) Reason() string
Constants ¶
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" )
const OperationAppConfigServiceCreateAppConfig = "/resource.api.app_config.AppConfigService/CreateAppConfig"
const OperationAppConfigServiceGetAppConfig = "/resource.api.app_config.AppConfigService/GetAppConfig"
const OperationAppConfigServiceListAppConfig = "/resource.api.app_config.AppConfigService/ListAppConfig"
const OperationAppConfigServiceRecalcAppConfigUsage = "/resource.api.app_config.AppConfigService/RecalcAppConfigUsage"
const OperationAppConfigServiceUpdateAppConfig = "/resource.api.app_config.AppConfigService/UpdateAppConfig"
Variables ¶
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)
var File_api_app_config_proto_app_config_proto protoreflect.FileDescriptor
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 绑定。
func NewAppConfigServiceClient ¶
func NewAppConfigServiceClient(cc grpc.ClientConnInterface) AppConfigServiceClient
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 (c *AppConfigServiceHTTPClientImpl) CreateAppConfig(ctx context.Context, in *CreateAppConfigRequest, opts ...http.CallOption) (*CreateAppConfigResponse, error)
func (*AppConfigServiceHTTPClientImpl) GetAppConfig ¶
func (c *AppConfigServiceHTTPClientImpl) GetAppConfig(ctx context.Context, in *GetAppConfigRequest, opts ...http.CallOption) (*GetAppConfigResponse, error)
func (*AppConfigServiceHTTPClientImpl) ListAppConfig ¶
func (c *AppConfigServiceHTTPClientImpl) ListAppConfig(ctx context.Context, in *ListAppConfigRequest, opts ...http.CallOption) (*ListAppConfigResponse, error)
func (*AppConfigServiceHTTPClientImpl) RecalcAppConfigUsage ¶
func (c *AppConfigServiceHTTPClientImpl) RecalcAppConfigUsage(ctx context.Context, in *RecalcAppConfigUsageRequest, opts ...http.CallOption) (*RecalcAppConfigUsageResponse, error)
func (*AppConfigServiceHTTPClientImpl) UpdateAppConfig ¶
func (c *AppConfigServiceHTTPClientImpl) UpdateAppConfig(ctx context.Context, in *UpdateAppConfigRequest, opts ...http.CallOption) (*UpdateAppConfigResponse, error)
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 ¶
func (e AppConfigViewValidationError) Cause() error
Cause function returns cause value.
func (AppConfigViewValidationError) Error ¶
func (e AppConfigViewValidationError) Error() string
Error satisfies the builtin error interface
func (AppConfigViewValidationError) ErrorName ¶
func (e AppConfigViewValidationError) ErrorName() string
ErrorName returns error name.
func (AppConfigViewValidationError) Field ¶
func (e AppConfigViewValidationError) Field() string
Field function returns field value.
func (AppConfigViewValidationError) Key ¶
func (e AppConfigViewValidationError) Key() bool
Key function returns key value.
func (AppConfigViewValidationError) Reason ¶
func (e AppConfigViewValidationError) Reason() string
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 ¶
func (m CreateAppConfigRequestMultiError) Error() string
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 ¶
func (e CreateAppConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAppConfigRequestValidationError) Error ¶
func (e CreateAppConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAppConfigRequestValidationError) ErrorName ¶
func (e CreateAppConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAppConfigRequestValidationError) Field ¶
func (e CreateAppConfigRequestValidationError) Field() string
Field function returns field value.
func (CreateAppConfigRequestValidationError) Key ¶
func (e CreateAppConfigRequestValidationError) Key() bool
Key function returns key value.
func (CreateAppConfigRequestValidationError) Reason ¶
func (e CreateAppConfigRequestValidationError) Reason() string
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 ¶
func (m CreateAppConfigResponseMultiError) Error() string
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 ¶
func (e CreateAppConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateAppConfigResponseValidationError) Error ¶
func (e CreateAppConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAppConfigResponseValidationError) ErrorName ¶
func (e CreateAppConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAppConfigResponseValidationError) Field ¶
func (e CreateAppConfigResponseValidationError) Field() string
Field function returns field value.
func (CreateAppConfigResponseValidationError) Key ¶
func (e CreateAppConfigResponseValidationError) Key() bool
Key function returns key value.
func (CreateAppConfigResponseValidationError) Reason ¶
func (e CreateAppConfigResponseValidationError) Reason() string
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 ¶
func (m GetAppConfigRequestMultiError) Error() string
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 ¶
func (e GetAppConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAppConfigRequestValidationError) Error ¶
func (e GetAppConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAppConfigRequestValidationError) ErrorName ¶
func (e GetAppConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAppConfigRequestValidationError) Field ¶
func (e GetAppConfigRequestValidationError) Field() string
Field function returns field value.
func (GetAppConfigRequestValidationError) Key ¶
func (e GetAppConfigRequestValidationError) Key() bool
Key function returns key value.
func (GetAppConfigRequestValidationError) Reason ¶
func (e GetAppConfigRequestValidationError) Reason() string
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 ¶
func (m GetAppConfigResponseMultiError) Error() string
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 ¶
func (e GetAppConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAppConfigResponseValidationError) Error ¶
func (e GetAppConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAppConfigResponseValidationError) ErrorName ¶
func (e GetAppConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAppConfigResponseValidationError) Field ¶
func (e GetAppConfigResponseValidationError) Field() string
Field function returns field value.
func (GetAppConfigResponseValidationError) Key ¶
func (e GetAppConfigResponseValidationError) Key() bool
Key function returns key value.
func (GetAppConfigResponseValidationError) Reason ¶
func (e GetAppConfigResponseValidationError) Reason() string
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 ¶
func (m ListAppConfigRequestMultiError) Error() string
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 ¶
func (e ListAppConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (ListAppConfigRequestValidationError) Error ¶
func (e ListAppConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListAppConfigRequestValidationError) ErrorName ¶
func (e ListAppConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListAppConfigRequestValidationError) Field ¶
func (e ListAppConfigRequestValidationError) Field() string
Field function returns field value.
func (ListAppConfigRequestValidationError) Key ¶
func (e ListAppConfigRequestValidationError) Key() bool
Key function returns key value.
func (ListAppConfigRequestValidationError) Reason ¶
func (e ListAppConfigRequestValidationError) Reason() string
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 ¶
func (m ListAppConfigResponseMultiError) Error() string
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 ¶
func (e ListAppConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (ListAppConfigResponseValidationError) Error ¶
func (e ListAppConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListAppConfigResponseValidationError) ErrorName ¶
func (e ListAppConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListAppConfigResponseValidationError) Field ¶
func (e ListAppConfigResponseValidationError) Field() string
Field function returns field value.
func (ListAppConfigResponseValidationError) Key ¶
func (e ListAppConfigResponseValidationError) Key() bool
Key function returns key value.
func (ListAppConfigResponseValidationError) Reason ¶
func (e ListAppConfigResponseValidationError) Reason() string
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 (x *RecalcAppConfigUsageRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m RecalcAppConfigUsageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecalcAppConfigUsageRequestMultiError) Error ¶
func (m RecalcAppConfigUsageRequestMultiError) Error() string
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 ¶
func (e RecalcAppConfigUsageRequestValidationError) Cause() error
Cause function returns cause value.
func (RecalcAppConfigUsageRequestValidationError) Error ¶
func (e RecalcAppConfigUsageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RecalcAppConfigUsageRequestValidationError) ErrorName ¶
func (e RecalcAppConfigUsageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RecalcAppConfigUsageRequestValidationError) Field ¶
func (e RecalcAppConfigUsageRequestValidationError) Field() string
Field function returns field value.
func (RecalcAppConfigUsageRequestValidationError) Key ¶
func (e RecalcAppConfigUsageRequestValidationError) Key() bool
Key function returns key value.
func (RecalcAppConfigUsageRequestValidationError) Reason ¶
func (e RecalcAppConfigUsageRequestValidationError) Reason() string
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 (x *RecalcAppConfigUsageResponse) GetApp() string
func (*RecalcAppConfigUsageResponse) GetUsedBytes ¶
func (x *RecalcAppConfigUsageResponse) GetUsedBytes() uint64
func (*RecalcAppConfigUsageResponse) ProtoMessage ¶
func (*RecalcAppConfigUsageResponse) ProtoMessage()
func (*RecalcAppConfigUsageResponse) ProtoReflect ¶
func (x *RecalcAppConfigUsageResponse) ProtoReflect() protoreflect.Message
func (*RecalcAppConfigUsageResponse) Reset ¶
func (x *RecalcAppConfigUsageResponse) Reset()
func (*RecalcAppConfigUsageResponse) String ¶
func (x *RecalcAppConfigUsageResponse) String() 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 ¶
func (m RecalcAppConfigUsageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecalcAppConfigUsageResponseMultiError) Error ¶
func (m RecalcAppConfigUsageResponseMultiError) Error() string
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 ¶
func (e RecalcAppConfigUsageResponseValidationError) Cause() error
Cause function returns cause value.
func (RecalcAppConfigUsageResponseValidationError) Error ¶
func (e RecalcAppConfigUsageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RecalcAppConfigUsageResponseValidationError) ErrorName ¶
func (e RecalcAppConfigUsageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RecalcAppConfigUsageResponseValidationError) Field ¶
func (e RecalcAppConfigUsageResponseValidationError) Field() string
Field function returns field value.
func (RecalcAppConfigUsageResponseValidationError) Key ¶
func (e RecalcAppConfigUsageResponseValidationError) Key() bool
Key function returns key value.
func (RecalcAppConfigUsageResponseValidationError) Reason ¶
func (e RecalcAppConfigUsageResponseValidationError) Reason() string
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) CreateAppConfig(context.Context, *CreateAppConfigRequest) (*CreateAppConfigResponse, error)
func (UnimplementedAppConfigServiceServer) GetAppConfig ¶
func (UnimplementedAppConfigServiceServer) GetAppConfig(context.Context, *GetAppConfigRequest) (*GetAppConfigResponse, error)
func (UnimplementedAppConfigServiceServer) ListAppConfig ¶
func (UnimplementedAppConfigServiceServer) ListAppConfig(context.Context, *ListAppConfigRequest) (*ListAppConfigResponse, error)
func (UnimplementedAppConfigServiceServer) RecalcAppConfigUsage ¶
func (UnimplementedAppConfigServiceServer) RecalcAppConfigUsage(context.Context, *RecalcAppConfigUsageRequest) (*RecalcAppConfigUsageResponse, error)
func (UnimplementedAppConfigServiceServer) UpdateAppConfig ¶
func (UnimplementedAppConfigServiceServer) UpdateAppConfig(context.Context, *UpdateAppConfigRequest) (*UpdateAppConfigResponse, error)
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 ¶
func (m UpdateAppConfigRequestMultiError) Error() string
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 ¶
func (e UpdateAppConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateAppConfigRequestValidationError) Error ¶
func (e UpdateAppConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAppConfigRequestValidationError) ErrorName ¶
func (e UpdateAppConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAppConfigRequestValidationError) Field ¶
func (e UpdateAppConfigRequestValidationError) Field() string
Field function returns field value.
func (UpdateAppConfigRequestValidationError) Key ¶
func (e UpdateAppConfigRequestValidationError) Key() bool
Key function returns key value.
func (UpdateAppConfigRequestValidationError) Reason ¶
func (e UpdateAppConfigRequestValidationError) Reason() string
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 ¶
func (m UpdateAppConfigResponseMultiError) Error() string
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 ¶
func (e UpdateAppConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateAppConfigResponseValidationError) Error ¶
func (e UpdateAppConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAppConfigResponseValidationError) ErrorName ¶
func (e UpdateAppConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAppConfigResponseValidationError) Field ¶
func (e UpdateAppConfigResponseValidationError) Field() string
Field function returns field value.
func (UpdateAppConfigResponseValidationError) Key ¶
func (e UpdateAppConfigResponseValidationError) Key() bool
Key function returns key value.
func (UpdateAppConfigResponseValidationError) Reason ¶
func (e UpdateAppConfigResponseValidationError) Reason() string
Reason function returns reason value.