v1

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const OperationSystemGetSystemSetting = "/manager.api.manager.system.v1.System/GetSystemSetting"
View Source
const (
	System_GetSystemSetting_FullMethodName = "/manager.api.manager.system.v1.System/GetSystemSetting"
)

Variables

View Source
var File_api_manager_system_manager_system_proto protoreflect.FileDescriptor
View Source
var File_api_manager_system_manager_system_service_proto protoreflect.FileDescriptor
View Source
var System_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.manager.system.v1.System",
	HandlerType: (*SystemServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSystemSetting",
			Handler:    _System_GetSystemSetting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/manager/system/manager_system_service.proto",
}

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

Functions

func RegisterSystemHTTPServer

func RegisterSystemHTTPServer(s *http.Server, srv SystemHTTPServer)

func RegisterSystemServer

func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)

Types

type DictionaryValue

type DictionaryValue struct {
	Label string  `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Value string  `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Type  *string `protobuf:"bytes,3,opt,name=type,proto3,oneof" json:"type,omitempty"`
	Extra *string `protobuf:"bytes,4,opt,name=extra,proto3,oneof" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*DictionaryValue) Descriptor deprecated

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

Deprecated: Use DictionaryValue.ProtoReflect.Descriptor instead.

func (*DictionaryValue) GetExtra

func (x *DictionaryValue) GetExtra() string

func (*DictionaryValue) GetLabel

func (x *DictionaryValue) GetLabel() string

func (*DictionaryValue) GetType

func (x *DictionaryValue) GetType() string

func (*DictionaryValue) GetValue

func (x *DictionaryValue) GetValue() string

func (*DictionaryValue) ProtoMessage

func (*DictionaryValue) ProtoMessage()

func (*DictionaryValue) ProtoReflect

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

func (*DictionaryValue) Reset

func (x *DictionaryValue) Reset()

func (*DictionaryValue) String

func (x *DictionaryValue) String() string

func (*DictionaryValue) Validate

func (m *DictionaryValue) Validate() error

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

func (m *DictionaryValue) ValidateAll() error

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

type DictionaryValueMultiError

type DictionaryValueMultiError []error

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

func (DictionaryValueMultiError) AllErrors

func (m DictionaryValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DictionaryValueMultiError) Error

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

type DictionaryValueValidationError

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

DictionaryValueValidationError is the validation error returned by DictionaryValue.Validate if the designated constraints aren't met.

func (DictionaryValueValidationError) Cause

Cause function returns cause value.

func (DictionaryValueValidationError) Error

Error satisfies the builtin error interface

func (DictionaryValueValidationError) ErrorName

func (e DictionaryValueValidationError) ErrorName() string

ErrorName returns error name.

func (DictionaryValueValidationError) Field

Field function returns field value.

func (DictionaryValueValidationError) Key

Key function returns key value.

func (DictionaryValueValidationError) Reason

Reason function returns reason value.

type GetSystemSettingReply

type GetSystemSettingReply struct {
	Debug              bool                                                  `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"`
	Title              string                                                `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Desc               string                                                `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	Copyright          string                                                `protobuf:"bytes,4,opt,name=copyright,proto3" json:"copyright,omitempty"`
	ChangePasswordType string                                                `protobuf:"bytes,6,opt,name=changePasswordType,proto3" json:"changePasswordType,omitempty"`
	Watermark          string                                                `protobuf:"bytes,7,opt,name=watermark,proto3" json:"watermark,omitempty"`
	Dictionaries       map[string]*GetSystemSettingReply_DictionaryValueList `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetSystemSettingReply) Descriptor deprecated

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

Deprecated: Use GetSystemSettingReply.ProtoReflect.Descriptor instead.

func (*GetSystemSettingReply) GetChangePasswordType

func (x *GetSystemSettingReply) GetChangePasswordType() string

func (*GetSystemSettingReply) GetCopyright

func (x *GetSystemSettingReply) GetCopyright() string

func (*GetSystemSettingReply) GetDebug

func (x *GetSystemSettingReply) GetDebug() bool

func (*GetSystemSettingReply) GetDesc

func (x *GetSystemSettingReply) GetDesc() string

func (*GetSystemSettingReply) GetDictionaries

func (x *GetSystemSettingReply) GetLogo() string

func (*GetSystemSettingReply) GetTitle

func (x *GetSystemSettingReply) GetTitle() string

func (*GetSystemSettingReply) GetWatermark

func (x *GetSystemSettingReply) GetWatermark() string

func (*GetSystemSettingReply) ProtoMessage

func (*GetSystemSettingReply) ProtoMessage()

func (*GetSystemSettingReply) ProtoReflect

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

func (*GetSystemSettingReply) Reset

func (x *GetSystemSettingReply) Reset()

func (*GetSystemSettingReply) String

func (x *GetSystemSettingReply) String() string

func (*GetSystemSettingReply) Validate

func (m *GetSystemSettingReply) Validate() error

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

func (m *GetSystemSettingReply) ValidateAll() error

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

type GetSystemSettingReplyMultiError

type GetSystemSettingReplyMultiError []error

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

func (GetSystemSettingReplyMultiError) AllErrors

func (m GetSystemSettingReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSystemSettingReplyMultiError) Error

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

type GetSystemSettingReplyValidationError

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

GetSystemSettingReplyValidationError is the validation error returned by GetSystemSettingReply.Validate if the designated constraints aren't met.

func (GetSystemSettingReplyValidationError) Cause

Cause function returns cause value.

func (GetSystemSettingReplyValidationError) Error

Error satisfies the builtin error interface

func (GetSystemSettingReplyValidationError) ErrorName

ErrorName returns error name.

func (GetSystemSettingReplyValidationError) Field

Field function returns field value.

func (GetSystemSettingReplyValidationError) Key

Key function returns key value.

func (GetSystemSettingReplyValidationError) Reason

Reason function returns reason value.

type GetSystemSettingReply_DictionaryValueList

type GetSystemSettingReply_DictionaryValueList struct {
	List []*DictionaryValue `protobuf:"bytes,8,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSystemSettingReply_DictionaryValueList) Descriptor deprecated

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

Deprecated: Use GetSystemSettingReply_DictionaryValueList.ProtoReflect.Descriptor instead.

func (*GetSystemSettingReply_DictionaryValueList) GetList

func (*GetSystemSettingReply_DictionaryValueList) ProtoMessage

func (*GetSystemSettingReply_DictionaryValueList) ProtoReflect

func (*GetSystemSettingReply_DictionaryValueList) Reset

func (*GetSystemSettingReply_DictionaryValueList) String

func (*GetSystemSettingReply_DictionaryValueList) Validate

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

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

type GetSystemSettingReply_DictionaryValueListMultiError

type GetSystemSettingReply_DictionaryValueListMultiError []error

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

func (GetSystemSettingReply_DictionaryValueListMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetSystemSettingReply_DictionaryValueListMultiError) Error

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

type GetSystemSettingReply_DictionaryValueListValidationError

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

GetSystemSettingReply_DictionaryValueListValidationError is the validation error returned by GetSystemSettingReply_DictionaryValueList.Validate if the designated constraints aren't met.

func (GetSystemSettingReply_DictionaryValueListValidationError) Cause

Cause function returns cause value.

func (GetSystemSettingReply_DictionaryValueListValidationError) Error

Error satisfies the builtin error interface

func (GetSystemSettingReply_DictionaryValueListValidationError) ErrorName

ErrorName returns error name.

func (GetSystemSettingReply_DictionaryValueListValidationError) Field

Field function returns field value.

func (GetSystemSettingReply_DictionaryValueListValidationError) Key

Key function returns key value.

func (GetSystemSettingReply_DictionaryValueListValidationError) Reason

Reason function returns reason value.

type GetSystemSettingRequest

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

func (*GetSystemSettingRequest) Descriptor deprecated

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

Deprecated: Use GetSystemSettingRequest.ProtoReflect.Descriptor instead.

func (*GetSystemSettingRequest) ProtoMessage

func (*GetSystemSettingRequest) ProtoMessage()

func (*GetSystemSettingRequest) ProtoReflect

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

func (*GetSystemSettingRequest) Reset

func (x *GetSystemSettingRequest) Reset()

func (*GetSystemSettingRequest) String

func (x *GetSystemSettingRequest) String() string

func (*GetSystemSettingRequest) Validate

func (m *GetSystemSettingRequest) Validate() error

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

func (m *GetSystemSettingRequest) ValidateAll() error

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

type GetSystemSettingRequestMultiError

type GetSystemSettingRequestMultiError []error

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

func (GetSystemSettingRequestMultiError) AllErrors

func (m GetSystemSettingRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSystemSettingRequestMultiError) Error

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

type GetSystemSettingRequestValidationError

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

GetSystemSettingRequestValidationError is the validation error returned by GetSystemSettingRequest.Validate if the designated constraints aren't met.

func (GetSystemSettingRequestValidationError) Cause

Cause function returns cause value.

func (GetSystemSettingRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSystemSettingRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSystemSettingRequestValidationError) Field

Field function returns field value.

func (GetSystemSettingRequestValidationError) Key

Key function returns key value.

func (GetSystemSettingRequestValidationError) Reason

Reason function returns reason value.

type SystemClient

type SystemClient interface {
	// GetSystemSetting 获取系统设置
	GetSystemSetting(ctx context.Context, in *GetSystemSettingRequest, opts ...grpc.CallOption) (*GetSystemSettingReply, error)
}

SystemClient is the client API for System service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSystemClient

func NewSystemClient(cc grpc.ClientConnInterface) SystemClient

type SystemHTTPClient

type SystemHTTPClient interface {
	GetSystemSetting(ctx context.Context, req *GetSystemSettingRequest, opts ...http.CallOption) (rsp *GetSystemSettingReply, err error)
}

func NewSystemHTTPClient

func NewSystemHTTPClient(client *http.Client) SystemHTTPClient

type SystemHTTPClientImpl

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

func (*SystemHTTPClientImpl) GetSystemSetting

type SystemHTTPServer

type SystemHTTPServer interface {
	// GetSystemSetting GetSystemSetting 获取系统设置
	GetSystemSetting(context.Context, *GetSystemSettingRequest) (*GetSystemSettingReply, error)
}

type SystemServer

type SystemServer interface {
	// GetSystemSetting 获取系统设置
	GetSystemSetting(context.Context, *GetSystemSettingRequest) (*GetSystemSettingReply, error)
	// contains filtered or unexported methods
}

SystemServer is the server API for System service. All implementations must embed UnimplementedSystemServer for forward compatibility

type UnimplementedSystemServer

type UnimplementedSystemServer struct {
}

UnimplementedSystemServer must be embedded to have forward compatible implementations.

func (UnimplementedSystemServer) GetSystemSetting

type UnsafeSystemServer

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

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

Jump to

Keyboard shortcuts

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