Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSysHTTPServer(s *http.Server, srv SysHTTPServer)
- func RegisterSysServer(s grpc.ServiceRegistrar, srv SysServer)
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequest) GetAccessToken() string
- func (*AuthRequest) ProtoMessage()
- func (x *AuthRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRequest) Reset()
- func (x *AuthRequest) String() string
- func (m *AuthRequest) Validate() error
- func (m *AuthRequest) ValidateAll() error
- type AuthRequestMultiError
- type AuthRequestValidationError
- func (e AuthRequestValidationError) Cause() error
- func (e AuthRequestValidationError) Error() string
- func (e AuthRequestValidationError) ErrorName() string
- func (e AuthRequestValidationError) Field() string
- func (e AuthRequestValidationError) Key() bool
- func (e AuthRequestValidationError) Reason() string
- type AuthResp
- func (*AuthResp) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResp) GetDataScope() string
- func (x *AuthResp) GetRoleId() uint64
- func (x *AuthResp) GetRoleKey() string
- func (x *AuthResp) GetUserId() uint64
- func (*AuthResp) ProtoMessage()
- func (x *AuthResp) ProtoReflect() protoreflect.Message
- func (x *AuthResp) Reset()
- func (x *AuthResp) String() string
- func (m *AuthResp) Validate() error
- func (m *AuthResp) ValidateAll() error
- type AuthRespMultiError
- type AuthRespValidationError
- type CheckResourceReply
- func (*CheckResourceReply) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResourceReply) GetOk() bool
- func (*CheckResourceReply) ProtoMessage()
- func (x *CheckResourceReply) ProtoReflect() protoreflect.Message
- func (x *CheckResourceReply) Reset()
- func (x *CheckResourceReply) String() string
- func (m *CheckResourceReply) Validate() error
- func (m *CheckResourceReply) ValidateAll() error
- type CheckResourceReplyMultiError
- type CheckResourceReplyValidationError
- func (e CheckResourceReplyValidationError) Cause() error
- func (e CheckResourceReplyValidationError) Error() string
- func (e CheckResourceReplyValidationError) ErrorName() string
- func (e CheckResourceReplyValidationError) Field() string
- func (e CheckResourceReplyValidationError) Key() bool
- func (e CheckResourceReplyValidationError) Reason() string
- type CheckResourceRequest
- func (*CheckResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResourceRequest) GetMethod() string
- func (x *CheckResourceRequest) GetPath() string
- func (*CheckResourceRequest) ProtoMessage()
- func (x *CheckResourceRequest) ProtoReflect() protoreflect.Message
- func (x *CheckResourceRequest) Reset()
- func (x *CheckResourceRequest) String() string
- func (m *CheckResourceRequest) Validate() error
- func (m *CheckResourceRequest) ValidateAll() error
- type CheckResourceRequestMultiError
- type CheckResourceRequestValidationError
- func (e CheckResourceRequestValidationError) Cause() error
- func (e CheckResourceRequestValidationError) Error() string
- func (e CheckResourceRequestValidationError) ErrorName() string
- func (e CheckResourceRequestValidationError) Field() string
- func (e CheckResourceRequestValidationError) Key() bool
- func (e CheckResourceRequestValidationError) Reason() string
- type CheckRoleLevelReply
- func (*CheckRoleLevelReply) Descriptor() ([]byte, []int)deprecated
- func (*CheckRoleLevelReply) ProtoMessage()
- func (x *CheckRoleLevelReply) ProtoReflect() protoreflect.Message
- func (x *CheckRoleLevelReply) Reset()
- func (x *CheckRoleLevelReply) String() string
- func (m *CheckRoleLevelReply) Validate() error
- func (m *CheckRoleLevelReply) ValidateAll() error
- type CheckRoleLevelReplyMultiError
- type CheckRoleLevelReplyValidationError
- func (e CheckRoleLevelReplyValidationError) Cause() error
- func (e CheckRoleLevelReplyValidationError) Error() string
- func (e CheckRoleLevelReplyValidationError) ErrorName() string
- func (e CheckRoleLevelReplyValidationError) Field() string
- func (e CheckRoleLevelReplyValidationError) Key() bool
- func (e CheckRoleLevelReplyValidationError) Reason() string
- type CheckRoleLevelRequest
- func (*CheckRoleLevelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRoleLevelRequest) GetRoleId() int32
- func (x *CheckRoleLevelRequest) GetTarget() int32
- func (*CheckRoleLevelRequest) ProtoMessage()
- func (x *CheckRoleLevelRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRoleLevelRequest) Reset()
- func (x *CheckRoleLevelRequest) String() string
- func (m *CheckRoleLevelRequest) Validate() error
- func (m *CheckRoleLevelRequest) ValidateAll() error
- type CheckRoleLevelRequestMultiError
- type CheckRoleLevelRequestValidationError
- func (e CheckRoleLevelRequestValidationError) Cause() error
- func (e CheckRoleLevelRequestValidationError) Error() string
- func (e CheckRoleLevelRequestValidationError) ErrorName() string
- func (e CheckRoleLevelRequestValidationError) Field() string
- func (e CheckRoleLevelRequestValidationError) Key() bool
- func (e CheckRoleLevelRequestValidationError) Reason() string
- type SysClient
- type SysHTTPClient
- type SysHTTPClientImpl
- type SysHTTPServer
- type SysServer
- type UnimplementedSysServer
- func (UnimplementedSysServer) Auth(context.Context, *AuthRequest) (*AuthResp, error)
- func (UnimplementedSysServer) CheckResource(context.Context, *CheckResourceRequest) (*CheckResourceReply, error)
- func (UnimplementedSysServer) CheckRoleLevel(context.Context, *CheckRoleLevelRequest) (*CheckRoleLevelReply, error)
- type UnsafeSysServer
Constants ¶
const ( Sys_Auth_FullMethodName = "/api.sys.Sys/Auth" Sys_CheckResource_FullMethodName = "/api.sys.Sys/CheckResource" Sys_CheckRoleLevel_FullMethodName = "/api.sys.Sys/CheckRoleLevel" )
const OperationSysAuth = "/api.sys.Sys/Auth"
const OperationSysCheckResource = "/api.sys.Sys/CheckResource"
Variables ¶
var File_api_sys_sys_proto protoreflect.FileDescriptor
var Sys_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.sys.Sys", HandlerType: (*SysServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Auth", Handler: _Sys_Auth_Handler, }, { MethodName: "CheckResource", Handler: _Sys_CheckResource_Handler, }, { MethodName: "CheckRoleLevel", Handler: _Sys_CheckRoleLevel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/sys/sys.proto", }
Sys_ServiceDesc is the grpc.ServiceDesc for Sys service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSysHTTPServer ¶
func RegisterSysHTTPServer(s *http.Server, srv SysHTTPServer)
func RegisterSysServer ¶
func RegisterSysServer(s grpc.ServiceRegistrar, srv SysServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetAccessToken ¶
func (x *AuthRequest) GetAccessToken() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
func (*AuthRequest) Validate ¶
func (m *AuthRequest) Validate() error
Validate checks the field values on AuthRequest 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 (*AuthRequest) ValidateAll ¶ added in v0.0.8
func (m *AuthRequest) ValidateAll() error
ValidateAll checks the field values on AuthRequest 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 AuthRequestMultiError, or nil if none found.
type AuthRequestMultiError ¶ added in v0.0.8
type AuthRequestMultiError []error
AuthRequestMultiError is an error wrapping multiple validation errors returned by AuthRequest.ValidateAll() if the designated constraints aren't met.
func (AuthRequestMultiError) AllErrors ¶ added in v0.0.8
func (m AuthRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthRequestMultiError) Error ¶ added in v0.0.8
func (m AuthRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthRequestValidationError ¶
type AuthRequestValidationError struct {
// contains filtered or unexported fields
}
AuthRequestValidationError is the validation error returned by AuthRequest.Validate if the designated constraints aren't met.
func (AuthRequestValidationError) Cause ¶
func (e AuthRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthRequestValidationError) Error ¶
func (e AuthRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthRequestValidationError) ErrorName ¶
func (e AuthRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthRequestValidationError) Field ¶
func (e AuthRequestValidationError) Field() string
Field function returns field value.
func (AuthRequestValidationError) Key ¶
func (e AuthRequestValidationError) Key() bool
Key function returns key value.
func (AuthRequestValidationError) Reason ¶
func (e AuthRequestValidationError) Reason() string
Reason function returns reason value.
type AuthResp ¶
type AuthResp struct { DataScope string `protobuf:"bytes,1,opt,name=dataScope,proto3" json:"dataScope,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` RoleId uint64 `protobuf:"varint,3,opt,name=roleId,proto3" json:"roleId,omitempty"` RoleKey string `protobuf:"bytes,4,opt,name=roleKey,proto3" json:"roleKey,omitempty"` // contains filtered or unexported fields }
func (*AuthResp) Descriptor
deprecated
func (*AuthResp) GetDataScope ¶
func (*AuthResp) GetRoleKey ¶
func (*AuthResp) ProtoMessage ¶
func (*AuthResp) ProtoMessage()
func (*AuthResp) ProtoReflect ¶
func (x *AuthResp) ProtoReflect() protoreflect.Message
func (*AuthResp) Validate ¶
Validate checks the field values on AuthResp 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 (*AuthResp) ValidateAll ¶ added in v0.0.8
ValidateAll checks the field values on AuthResp 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 AuthRespMultiError, or nil if none found.
type AuthRespMultiError ¶ added in v0.0.8
type AuthRespMultiError []error
AuthRespMultiError is an error wrapping multiple validation errors returned by AuthResp.ValidateAll() if the designated constraints aren't met.
func (AuthRespMultiError) AllErrors ¶ added in v0.0.8
func (m AuthRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthRespMultiError) Error ¶ added in v0.0.8
func (m AuthRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthRespValidationError ¶
type AuthRespValidationError struct {
// contains filtered or unexported fields
}
AuthRespValidationError is the validation error returned by AuthResp.Validate if the designated constraints aren't met.
func (AuthRespValidationError) Cause ¶
func (e AuthRespValidationError) Cause() error
Cause function returns cause value.
func (AuthRespValidationError) Error ¶
func (e AuthRespValidationError) Error() string
Error satisfies the builtin error interface
func (AuthRespValidationError) ErrorName ¶
func (e AuthRespValidationError) ErrorName() string
ErrorName returns error name.
func (AuthRespValidationError) Field ¶
func (e AuthRespValidationError) Field() string
Field function returns field value.
func (AuthRespValidationError) Key ¶
func (e AuthRespValidationError) Key() bool
Key function returns key value.
func (AuthRespValidationError) Reason ¶
func (e AuthRespValidationError) Reason() string
Reason function returns reason value.
type CheckResourceReply ¶
type CheckResourceReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*CheckResourceReply) Descriptor
deprecated
func (*CheckResourceReply) Descriptor() ([]byte, []int)
Deprecated: Use CheckResourceReply.ProtoReflect.Descriptor instead.
func (*CheckResourceReply) GetOk ¶
func (x *CheckResourceReply) GetOk() bool
func (*CheckResourceReply) ProtoMessage ¶
func (*CheckResourceReply) ProtoMessage()
func (*CheckResourceReply) ProtoReflect ¶
func (x *CheckResourceReply) ProtoReflect() protoreflect.Message
func (*CheckResourceReply) Reset ¶
func (x *CheckResourceReply) Reset()
func (*CheckResourceReply) String ¶
func (x *CheckResourceReply) String() string
func (*CheckResourceReply) Validate ¶
func (m *CheckResourceReply) Validate() error
Validate checks the field values on CheckResourceReply 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 (*CheckResourceReply) ValidateAll ¶ added in v0.0.8
func (m *CheckResourceReply) ValidateAll() error
ValidateAll checks the field values on CheckResourceReply 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 CheckResourceReplyMultiError, or nil if none found.
type CheckResourceReplyMultiError ¶ added in v0.0.8
type CheckResourceReplyMultiError []error
CheckResourceReplyMultiError is an error wrapping multiple validation errors returned by CheckResourceReply.ValidateAll() if the designated constraints aren't met.
func (CheckResourceReplyMultiError) AllErrors ¶ added in v0.0.8
func (m CheckResourceReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckResourceReplyMultiError) Error ¶ added in v0.0.8
func (m CheckResourceReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckResourceReplyValidationError ¶
type CheckResourceReplyValidationError struct {
// contains filtered or unexported fields
}
CheckResourceReplyValidationError is the validation error returned by CheckResourceReply.Validate if the designated constraints aren't met.
func (CheckResourceReplyValidationError) Cause ¶
func (e CheckResourceReplyValidationError) Cause() error
Cause function returns cause value.
func (CheckResourceReplyValidationError) Error ¶
func (e CheckResourceReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CheckResourceReplyValidationError) ErrorName ¶
func (e CheckResourceReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CheckResourceReplyValidationError) Field ¶
func (e CheckResourceReplyValidationError) Field() string
Field function returns field value.
func (CheckResourceReplyValidationError) Key ¶
func (e CheckResourceReplyValidationError) Key() bool
Key function returns key value.
func (CheckResourceReplyValidationError) Reason ¶
func (e CheckResourceReplyValidationError) Reason() string
Reason function returns reason value.
type CheckResourceRequest ¶
type CheckResourceRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*CheckResourceRequest) Descriptor
deprecated
func (*CheckResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckResourceRequest.ProtoReflect.Descriptor instead.
func (*CheckResourceRequest) GetMethod ¶
func (x *CheckResourceRequest) GetMethod() string
func (*CheckResourceRequest) GetPath ¶
func (x *CheckResourceRequest) GetPath() string
func (*CheckResourceRequest) ProtoMessage ¶
func (*CheckResourceRequest) ProtoMessage()
func (*CheckResourceRequest) ProtoReflect ¶
func (x *CheckResourceRequest) ProtoReflect() protoreflect.Message
func (*CheckResourceRequest) Reset ¶
func (x *CheckResourceRequest) Reset()
func (*CheckResourceRequest) String ¶
func (x *CheckResourceRequest) String() string
func (*CheckResourceRequest) Validate ¶
func (m *CheckResourceRequest) Validate() error
Validate checks the field values on CheckResourceRequest 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 (*CheckResourceRequest) ValidateAll ¶ added in v0.0.8
func (m *CheckResourceRequest) ValidateAll() error
ValidateAll checks the field values on CheckResourceRequest 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 CheckResourceRequestMultiError, or nil if none found.
type CheckResourceRequestMultiError ¶ added in v0.0.8
type CheckResourceRequestMultiError []error
CheckResourceRequestMultiError is an error wrapping multiple validation errors returned by CheckResourceRequest.ValidateAll() if the designated constraints aren't met.
func (CheckResourceRequestMultiError) AllErrors ¶ added in v0.0.8
func (m CheckResourceRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckResourceRequestMultiError) Error ¶ added in v0.0.8
func (m CheckResourceRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckResourceRequestValidationError ¶
type CheckResourceRequestValidationError struct {
// contains filtered or unexported fields
}
CheckResourceRequestValidationError is the validation error returned by CheckResourceRequest.Validate if the designated constraints aren't met.
func (CheckResourceRequestValidationError) Cause ¶
func (e CheckResourceRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckResourceRequestValidationError) Error ¶
func (e CheckResourceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckResourceRequestValidationError) ErrorName ¶
func (e CheckResourceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckResourceRequestValidationError) Field ¶
func (e CheckResourceRequestValidationError) Field() string
Field function returns field value.
func (CheckResourceRequestValidationError) Key ¶
func (e CheckResourceRequestValidationError) Key() bool
Key function returns key value.
func (CheckResourceRequestValidationError) Reason ¶
func (e CheckResourceRequestValidationError) Reason() string
Reason function returns reason value.
type CheckRoleLevelReply ¶
type CheckRoleLevelReply struct {
// contains filtered or unexported fields
}
func (*CheckRoleLevelReply) Descriptor
deprecated
func (*CheckRoleLevelReply) Descriptor() ([]byte, []int)
Deprecated: Use CheckRoleLevelReply.ProtoReflect.Descriptor instead.
func (*CheckRoleLevelReply) ProtoMessage ¶
func (*CheckRoleLevelReply) ProtoMessage()
func (*CheckRoleLevelReply) ProtoReflect ¶
func (x *CheckRoleLevelReply) ProtoReflect() protoreflect.Message
func (*CheckRoleLevelReply) Reset ¶
func (x *CheckRoleLevelReply) Reset()
func (*CheckRoleLevelReply) String ¶
func (x *CheckRoleLevelReply) String() string
func (*CheckRoleLevelReply) Validate ¶
func (m *CheckRoleLevelReply) Validate() error
Validate checks the field values on CheckRoleLevelReply 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 (*CheckRoleLevelReply) ValidateAll ¶ added in v0.0.8
func (m *CheckRoleLevelReply) ValidateAll() error
ValidateAll checks the field values on CheckRoleLevelReply 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 CheckRoleLevelReplyMultiError, or nil if none found.
type CheckRoleLevelReplyMultiError ¶ added in v0.0.8
type CheckRoleLevelReplyMultiError []error
CheckRoleLevelReplyMultiError is an error wrapping multiple validation errors returned by CheckRoleLevelReply.ValidateAll() if the designated constraints aren't met.
func (CheckRoleLevelReplyMultiError) AllErrors ¶ added in v0.0.8
func (m CheckRoleLevelReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckRoleLevelReplyMultiError) Error ¶ added in v0.0.8
func (m CheckRoleLevelReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckRoleLevelReplyValidationError ¶
type CheckRoleLevelReplyValidationError struct {
// contains filtered or unexported fields
}
CheckRoleLevelReplyValidationError is the validation error returned by CheckRoleLevelReply.Validate if the designated constraints aren't met.
func (CheckRoleLevelReplyValidationError) Cause ¶
func (e CheckRoleLevelReplyValidationError) Cause() error
Cause function returns cause value.
func (CheckRoleLevelReplyValidationError) Error ¶
func (e CheckRoleLevelReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CheckRoleLevelReplyValidationError) ErrorName ¶
func (e CheckRoleLevelReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CheckRoleLevelReplyValidationError) Field ¶
func (e CheckRoleLevelReplyValidationError) Field() string
Field function returns field value.
func (CheckRoleLevelReplyValidationError) Key ¶
func (e CheckRoleLevelReplyValidationError) Key() bool
Key function returns key value.
func (CheckRoleLevelReplyValidationError) Reason ¶
func (e CheckRoleLevelReplyValidationError) Reason() string
Reason function returns reason value.
type CheckRoleLevelRequest ¶
type CheckRoleLevelRequest struct { RoleId int32 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` Target int32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` // contains filtered or unexported fields }
func (*CheckRoleLevelRequest) Descriptor
deprecated
func (*CheckRoleLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRoleLevelRequest.ProtoReflect.Descriptor instead.
func (*CheckRoleLevelRequest) GetRoleId ¶
func (x *CheckRoleLevelRequest) GetRoleId() int32
func (*CheckRoleLevelRequest) GetTarget ¶
func (x *CheckRoleLevelRequest) GetTarget() int32
func (*CheckRoleLevelRequest) ProtoMessage ¶
func (*CheckRoleLevelRequest) ProtoMessage()
func (*CheckRoleLevelRequest) ProtoReflect ¶
func (x *CheckRoleLevelRequest) ProtoReflect() protoreflect.Message
func (*CheckRoleLevelRequest) Reset ¶
func (x *CheckRoleLevelRequest) Reset()
func (*CheckRoleLevelRequest) String ¶
func (x *CheckRoleLevelRequest) String() string
func (*CheckRoleLevelRequest) Validate ¶
func (m *CheckRoleLevelRequest) Validate() error
Validate checks the field values on CheckRoleLevelRequest 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 (*CheckRoleLevelRequest) ValidateAll ¶ added in v0.0.8
func (m *CheckRoleLevelRequest) ValidateAll() error
ValidateAll checks the field values on CheckRoleLevelRequest 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 CheckRoleLevelRequestMultiError, or nil if none found.
type CheckRoleLevelRequestMultiError ¶ added in v0.0.8
type CheckRoleLevelRequestMultiError []error
CheckRoleLevelRequestMultiError is an error wrapping multiple validation errors returned by CheckRoleLevelRequest.ValidateAll() if the designated constraints aren't met.
func (CheckRoleLevelRequestMultiError) AllErrors ¶ added in v0.0.8
func (m CheckRoleLevelRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckRoleLevelRequestMultiError) Error ¶ added in v0.0.8
func (m CheckRoleLevelRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckRoleLevelRequestValidationError ¶
type CheckRoleLevelRequestValidationError struct {
// contains filtered or unexported fields
}
CheckRoleLevelRequestValidationError is the validation error returned by CheckRoleLevelRequest.Validate if the designated constraints aren't met.
func (CheckRoleLevelRequestValidationError) Cause ¶
func (e CheckRoleLevelRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckRoleLevelRequestValidationError) Error ¶
func (e CheckRoleLevelRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckRoleLevelRequestValidationError) ErrorName ¶
func (e CheckRoleLevelRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckRoleLevelRequestValidationError) Field ¶
func (e CheckRoleLevelRequestValidationError) Field() string
Field function returns field value.
func (CheckRoleLevelRequestValidationError) Key ¶
func (e CheckRoleLevelRequestValidationError) Key() bool
Key function returns key value.
func (CheckRoleLevelRequestValidationError) Reason ¶
func (e CheckRoleLevelRequestValidationError) Reason() string
Reason function returns reason value.
type SysClient ¶
type SysClient interface { Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResp, error) CheckResource(ctx context.Context, in *CheckResourceRequest, opts ...grpc.CallOption) (*CheckResourceReply, error) CheckRoleLevel(ctx context.Context, in *CheckRoleLevelRequest, opts ...grpc.CallOption) (*CheckRoleLevelReply, error) }
SysClient is the client API for Sys 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 NewSysClient ¶
func NewSysClient(cc grpc.ClientConnInterface) SysClient
type SysHTTPClient ¶
type SysHTTPClient interface { Auth(ctx context.Context, req *AuthRequest, opts ...http.CallOption) (rsp *AuthResp, err error) CheckResource(ctx context.Context, req *CheckResourceRequest, opts ...http.CallOption) (rsp *CheckResourceReply, err error) }
func NewSysHTTPClient ¶
func NewSysHTTPClient(client *http.Client) SysHTTPClient
type SysHTTPClientImpl ¶
type SysHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SysHTTPClientImpl) Auth ¶
func (c *SysHTTPClientImpl) Auth(ctx context.Context, in *AuthRequest, opts ...http.CallOption) (*AuthResp, error)
func (*SysHTTPClientImpl) CheckResource ¶
func (c *SysHTTPClientImpl) CheckResource(ctx context.Context, in *CheckResourceRequest, opts ...http.CallOption) (*CheckResourceReply, error)
type SysHTTPServer ¶
type SysHTTPServer interface { Auth(context.Context, *AuthRequest) (*AuthResp, error) CheckResource(context.Context, *CheckResourceRequest) (*CheckResourceReply, error) }
type SysServer ¶
type SysServer interface { Auth(context.Context, *AuthRequest) (*AuthResp, error) CheckResource(context.Context, *CheckResourceRequest) (*CheckResourceReply, error) CheckRoleLevel(context.Context, *CheckRoleLevelRequest) (*CheckRoleLevelReply, error) // contains filtered or unexported methods }
SysServer is the server API for Sys service. All implementations must embed UnimplementedSysServer for forward compatibility
type UnimplementedSysServer ¶
type UnimplementedSysServer struct { }
UnimplementedSysServer must be embedded to have forward compatible implementations.
func (UnimplementedSysServer) Auth ¶
func (UnimplementedSysServer) Auth(context.Context, *AuthRequest) (*AuthResp, error)
func (UnimplementedSysServer) CheckResource ¶
func (UnimplementedSysServer) CheckResource(context.Context, *CheckResourceRequest) (*CheckResourceReply, error)
func (UnimplementedSysServer) CheckRoleLevel ¶
func (UnimplementedSysServer) CheckRoleLevel(context.Context, *CheckRoleLevelRequest) (*CheckRoleLevelReply, error)
type UnsafeSysServer ¶
type UnsafeSysServer interface {
// contains filtered or unexported methods
}
UnsafeSysServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SysServer will result in compilation errors.