Documentation ¶
Overview ¶
Package organization is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterUsersSettingsManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUsersSettingsManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersSettingsManagerClient) error
- func RegisterUsersSettingsManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUsersSettingsManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersSettingsManagerServer) error
- func RegisterUsersSettingsManagerServer(s grpc.ServiceRegistrar, srv UsersSettingsManagerServer)
- type GetUserReq
- func (*GetUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReq) GetUserId() string
- func (*GetUserReq) ProtoMessage()
- func (x *GetUserReq) ProtoReflect() protoreflect.Message
- func (x *GetUserReq) Reset()
- func (x *GetUserReq) String() string
- func (m *GetUserReq) Validate() error
- func (m *GetUserReq) ValidateAll() error
- type GetUserReqMultiError
- type GetUserReqValidationError
- type GetUserResp
- func (*GetUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResp) GetUser() *SettingsUser
- func (*GetUserResp) ProtoMessage()
- func (x *GetUserResp) ProtoReflect() protoreflect.Message
- func (x *GetUserResp) Reset()
- func (x *GetUserResp) String() string
- func (m *GetUserResp) Validate() error
- func (m *GetUserResp) ValidateAll() error
- type GetUserRespMultiError
- type GetUserRespValidationError
- func (e GetUserRespValidationError) Cause() error
- func (e GetUserRespValidationError) Error() string
- func (e GetUserRespValidationError) ErrorName() string
- func (e GetUserRespValidationError) Field() string
- func (e GetUserRespValidationError) Key() bool
- func (e GetUserRespValidationError) Reason() string
- type ListRolesReq
- func (*ListRolesReq) Descriptor() ([]byte, []int)deprecated
- func (*ListRolesReq) ProtoMessage()
- func (x *ListRolesReq) ProtoReflect() protoreflect.Message
- func (x *ListRolesReq) Reset()
- func (x *ListRolesReq) String() string
- func (m *ListRolesReq) Validate() error
- func (m *ListRolesReq) ValidateAll() error
- type ListRolesReqMultiError
- type ListRolesReqValidationError
- func (e ListRolesReqValidationError) Cause() error
- func (e ListRolesReqValidationError) Error() string
- func (e ListRolesReqValidationError) ErrorName() string
- func (e ListRolesReqValidationError) Field() string
- func (e ListRolesReqValidationError) Key() bool
- func (e ListRolesReqValidationError) Reason() string
- type ListRolesResp
- func (*ListRolesResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesResp) GetRoles() []*RoleDefinition
- func (*ListRolesResp) ProtoMessage()
- func (x *ListRolesResp) ProtoReflect() protoreflect.Message
- func (x *ListRolesResp) Reset()
- func (x *ListRolesResp) String() string
- func (m *ListRolesResp) Validate() error
- func (m *ListRolesResp) ValidateAll() error
- type ListRolesRespMultiError
- type ListRolesRespValidationError
- func (e ListRolesRespValidationError) Cause() error
- func (e ListRolesRespValidationError) Error() string
- func (e ListRolesRespValidationError) ErrorName() string
- func (e ListRolesRespValidationError) Field() string
- func (e ListRolesRespValidationError) Key() bool
- func (e ListRolesRespValidationError) Reason() string
- type ListUsersReq
- func (*ListUsersReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersReq) GetPageSize() int32
- func (x *ListUsersReq) GetPageToken() string
- func (*ListUsersReq) ProtoMessage()
- func (x *ListUsersReq) ProtoReflect() protoreflect.Message
- func (x *ListUsersReq) Reset()
- func (x *ListUsersReq) String() string
- func (m *ListUsersReq) Validate() error
- func (m *ListUsersReq) ValidateAll() error
- type ListUsersReqMultiError
- type ListUsersReqValidationError
- func (e ListUsersReqValidationError) Cause() error
- func (e ListUsersReqValidationError) Error() string
- func (e ListUsersReqValidationError) ErrorName() string
- func (e ListUsersReqValidationError) Field() string
- func (e ListUsersReqValidationError) Key() bool
- func (e ListUsersReqValidationError) Reason() string
- type ListUsersResp
- func (*ListUsersResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResp) GetNextPageToken() string
- func (x *ListUsersResp) GetUsers() []*SettingsUser
- func (*ListUsersResp) ProtoMessage()
- func (x *ListUsersResp) ProtoReflect() protoreflect.Message
- func (x *ListUsersResp) Reset()
- func (x *ListUsersResp) String() string
- func (m *ListUsersResp) Validate() error
- func (m *ListUsersResp) ValidateAll() error
- type ListUsersRespMultiError
- type ListUsersRespValidationError
- func (e ListUsersRespValidationError) Cause() error
- func (e ListUsersRespValidationError) Error() string
- func (e ListUsersRespValidationError) ErrorName() string
- func (e ListUsersRespValidationError) Field() string
- func (e ListUsersRespValidationError) Key() bool
- func (e ListUsersRespValidationError) Reason() string
- type RoleDefinition
- func (*RoleDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *RoleDefinition) GetDescription() string
- func (x *RoleDefinition) GetName() string
- func (*RoleDefinition) ProtoMessage()
- func (x *RoleDefinition) ProtoReflect() protoreflect.Message
- func (x *RoleDefinition) Reset()
- func (x *RoleDefinition) String() string
- func (m *RoleDefinition) Validate() error
- func (m *RoleDefinition) ValidateAll() error
- type RoleDefinitionMultiError
- type RoleDefinitionValidationError
- func (e RoleDefinitionValidationError) Cause() error
- func (e RoleDefinitionValidationError) Error() string
- func (e RoleDefinitionValidationError) ErrorName() string
- func (e RoleDefinitionValidationError) Field() string
- func (e RoleDefinitionValidationError) Key() bool
- func (e RoleDefinitionValidationError) Reason() string
- type SetRolesReq
- func (*SetRolesReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRolesReq) GetRoles() []string
- func (x *SetRolesReq) GetUserId() string
- func (*SetRolesReq) ProtoMessage()
- func (x *SetRolesReq) ProtoReflect() protoreflect.Message
- func (x *SetRolesReq) Reset()
- func (x *SetRolesReq) String() string
- func (m *SetRolesReq) Validate() error
- func (m *SetRolesReq) ValidateAll() error
- type SetRolesReqMultiError
- type SetRolesReqValidationError
- func (e SetRolesReqValidationError) Cause() error
- func (e SetRolesReqValidationError) Error() string
- func (e SetRolesReqValidationError) ErrorName() string
- func (e SetRolesReqValidationError) Field() string
- func (e SetRolesReqValidationError) Key() bool
- func (e SetRolesReqValidationError) Reason() string
- type SetRolesResp
- func (*SetRolesResp) Descriptor() ([]byte, []int)deprecated
- func (*SetRolesResp) ProtoMessage()
- func (x *SetRolesResp) ProtoReflect() protoreflect.Message
- func (x *SetRolesResp) Reset()
- func (x *SetRolesResp) String() string
- func (m *SetRolesResp) Validate() error
- func (m *SetRolesResp) ValidateAll() error
- type SetRolesRespMultiError
- type SetRolesRespValidationError
- func (e SetRolesRespValidationError) Cause() error
- func (e SetRolesRespValidationError) Error() string
- func (e SetRolesRespValidationError) ErrorName() string
- func (e SetRolesRespValidationError) Field() string
- func (e SetRolesRespValidationError) Key() bool
- func (e SetRolesRespValidationError) Reason() string
- type SettingsUser
- func (*SettingsUser) Descriptor() ([]byte, []int)deprecated
- func (x *SettingsUser) GetRoles() []string
- func (x *SettingsUser) GetUser() *users.User
- func (*SettingsUser) ProtoMessage()
- func (x *SettingsUser) ProtoReflect() protoreflect.Message
- func (x *SettingsUser) Reset()
- func (x *SettingsUser) String() string
- func (m *SettingsUser) Validate() error
- func (m *SettingsUser) ValidateAll() error
- type SettingsUserMultiError
- type SettingsUserValidationError
- func (e SettingsUserValidationError) Cause() error
- func (e SettingsUserValidationError) Error() string
- func (e SettingsUserValidationError) ErrorName() string
- func (e SettingsUserValidationError) Field() string
- func (e SettingsUserValidationError) Key() bool
- func (e SettingsUserValidationError) Reason() string
- type UnimplementedUsersSettingsManagerServer
- func (UnimplementedUsersSettingsManagerServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
- func (UnimplementedUsersSettingsManagerServer) ListRoles(context.Context, *ListRolesReq) (*ListRolesResp, error)
- func (UnimplementedUsersSettingsManagerServer) ListUsers(context.Context, *ListUsersReq) (*ListUsersResp, error)
- func (UnimplementedUsersSettingsManagerServer) SetRoles(context.Context, *SetRolesReq) (*SetRolesResp, error)
- type UnsafeUsersSettingsManagerServer
- type UsersSettingsManagerClient
- type UsersSettingsManagerServer
Constants ¶
const ( UsersSettingsManager_GetUser_FullMethodName = "/prodvana.settings.organization.UsersSettingsManager/GetUser" UsersSettingsManager_ListUsers_FullMethodName = "/prodvana.settings.organization.UsersSettingsManager/ListUsers" UsersSettingsManager_ListRoles_FullMethodName = "/prodvana.settings.organization.UsersSettingsManager/ListRoles" UsersSettingsManager_SetRoles_FullMethodName = "/prodvana.settings.organization.UsersSettingsManager/SetRoles" )
Variables ¶
var File_prodvana_settings_organization_users_proto protoreflect.FileDescriptor
var UsersSettingsManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "prodvana.settings.organization.UsersSettingsManager", HandlerType: (*UsersSettingsManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UsersSettingsManager_GetUser_Handler, }, { MethodName: "ListUsers", Handler: _UsersSettingsManager_ListUsers_Handler, }, { MethodName: "ListRoles", Handler: _UsersSettingsManager_ListRoles_Handler, }, { MethodName: "SetRoles", Handler: _UsersSettingsManager_SetRoles_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "prodvana/settings/organization/users.proto", }
UsersSettingsManager_ServiceDesc is the grpc.ServiceDesc for UsersSettingsManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUsersSettingsManagerHandler ¶
func RegisterUsersSettingsManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUsersSettingsManagerHandler registers the http handlers for service UsersSettingsManager to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUsersSettingsManagerHandlerClient ¶
func RegisterUsersSettingsManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersSettingsManagerClient) error
RegisterUsersSettingsManagerHandlerClient registers the http handlers for service UsersSettingsManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UsersSettingsManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UsersSettingsManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UsersSettingsManagerClient" to call the correct interceptors.
func RegisterUsersSettingsManagerHandlerFromEndpoint ¶
func RegisterUsersSettingsManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUsersSettingsManagerHandlerFromEndpoint is same as RegisterUsersSettingsManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUsersSettingsManagerHandlerServer ¶
func RegisterUsersSettingsManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersSettingsManagerServer) error
RegisterUsersSettingsManagerHandlerServer registers the http handlers for service UsersSettingsManager to "mux". UnaryRPC :call UsersSettingsManagerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUsersSettingsManagerHandlerFromEndpoint instead.
func RegisterUsersSettingsManagerServer ¶
func RegisterUsersSettingsManagerServer(s grpc.ServiceRegistrar, srv UsersSettingsManagerServer)
Types ¶
type GetUserReq ¶
type GetUserReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserReq) Descriptor
deprecated
func (*GetUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
func (*GetUserReq) GetUserId ¶
func (x *GetUserReq) GetUserId() string
func (*GetUserReq) ProtoMessage ¶
func (*GetUserReq) ProtoMessage()
func (*GetUserReq) ProtoReflect ¶
func (x *GetUserReq) ProtoReflect() protoreflect.Message
func (*GetUserReq) Reset ¶
func (x *GetUserReq) Reset()
func (*GetUserReq) String ¶
func (x *GetUserReq) String() string
func (*GetUserReq) Validate ¶
func (m *GetUserReq) Validate() error
Validate checks the field values on GetUserReq 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 (*GetUserReq) ValidateAll ¶
func (m *GetUserReq) ValidateAll() error
ValidateAll checks the field values on GetUserReq 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 GetUserReqMultiError, or nil if none found.
type GetUserReqMultiError ¶
type GetUserReqMultiError []error
GetUserReqMultiError is an error wrapping multiple validation errors returned by GetUserReq.ValidateAll() if the designated constraints aren't met.
func (GetUserReqMultiError) AllErrors ¶
func (m GetUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserReqMultiError) Error ¶
func (m GetUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserReqValidationError ¶
type GetUserReqValidationError struct {
// contains filtered or unexported fields
}
GetUserReqValidationError is the validation error returned by GetUserReq.Validate if the designated constraints aren't met.
func (GetUserReqValidationError) Cause ¶
func (e GetUserReqValidationError) Cause() error
Cause function returns cause value.
func (GetUserReqValidationError) Error ¶
func (e GetUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserReqValidationError) ErrorName ¶
func (e GetUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserReqValidationError) Field ¶
func (e GetUserReqValidationError) Field() string
Field function returns field value.
func (GetUserReqValidationError) Key ¶
func (e GetUserReqValidationError) Key() bool
Key function returns key value.
func (GetUserReqValidationError) Reason ¶
func (e GetUserReqValidationError) Reason() string
Reason function returns reason value.
type GetUserResp ¶
type GetUserResp struct { User *SettingsUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserResp) Descriptor
deprecated
func (*GetUserResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResp.ProtoReflect.Descriptor instead.
func (*GetUserResp) GetUser ¶
func (x *GetUserResp) GetUser() *SettingsUser
func (*GetUserResp) ProtoMessage ¶
func (*GetUserResp) ProtoMessage()
func (*GetUserResp) ProtoReflect ¶
func (x *GetUserResp) ProtoReflect() protoreflect.Message
func (*GetUserResp) Reset ¶
func (x *GetUserResp) Reset()
func (*GetUserResp) String ¶
func (x *GetUserResp) String() string
func (*GetUserResp) Validate ¶
func (m *GetUserResp) Validate() error
Validate checks the field values on GetUserResp 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 (*GetUserResp) ValidateAll ¶
func (m *GetUserResp) ValidateAll() error
ValidateAll checks the field values on GetUserResp 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 GetUserRespMultiError, or nil if none found.
type GetUserRespMultiError ¶
type GetUserRespMultiError []error
GetUserRespMultiError is an error wrapping multiple validation errors returned by GetUserResp.ValidateAll() if the designated constraints aren't met.
func (GetUserRespMultiError) AllErrors ¶
func (m GetUserRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRespMultiError) Error ¶
func (m GetUserRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRespValidationError ¶
type GetUserRespValidationError struct {
// contains filtered or unexported fields
}
GetUserRespValidationError is the validation error returned by GetUserResp.Validate if the designated constraints aren't met.
func (GetUserRespValidationError) Cause ¶
func (e GetUserRespValidationError) Cause() error
Cause function returns cause value.
func (GetUserRespValidationError) Error ¶
func (e GetUserRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRespValidationError) ErrorName ¶
func (e GetUserRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRespValidationError) Field ¶
func (e GetUserRespValidationError) Field() string
Field function returns field value.
func (GetUserRespValidationError) Key ¶
func (e GetUserRespValidationError) Key() bool
Key function returns key value.
func (GetUserRespValidationError) Reason ¶
func (e GetUserRespValidationError) Reason() string
Reason function returns reason value.
type ListRolesReq ¶
type ListRolesReq struct {
// contains filtered or unexported fields
}
func (*ListRolesReq) Descriptor
deprecated
func (*ListRolesReq) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesReq.ProtoReflect.Descriptor instead.
func (*ListRolesReq) ProtoMessage ¶
func (*ListRolesReq) ProtoMessage()
func (*ListRolesReq) ProtoReflect ¶
func (x *ListRolesReq) ProtoReflect() protoreflect.Message
func (*ListRolesReq) Reset ¶
func (x *ListRolesReq) Reset()
func (*ListRolesReq) String ¶
func (x *ListRolesReq) String() string
func (*ListRolesReq) Validate ¶
func (m *ListRolesReq) Validate() error
Validate checks the field values on ListRolesReq 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 (*ListRolesReq) ValidateAll ¶
func (m *ListRolesReq) ValidateAll() error
ValidateAll checks the field values on ListRolesReq 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 ListRolesReqMultiError, or nil if none found.
type ListRolesReqMultiError ¶
type ListRolesReqMultiError []error
ListRolesReqMultiError is an error wrapping multiple validation errors returned by ListRolesReq.ValidateAll() if the designated constraints aren't met.
func (ListRolesReqMultiError) AllErrors ¶
func (m ListRolesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRolesReqMultiError) Error ¶
func (m ListRolesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRolesReqValidationError ¶
type ListRolesReqValidationError struct {
// contains filtered or unexported fields
}
ListRolesReqValidationError is the validation error returned by ListRolesReq.Validate if the designated constraints aren't met.
func (ListRolesReqValidationError) Cause ¶
func (e ListRolesReqValidationError) Cause() error
Cause function returns cause value.
func (ListRolesReqValidationError) Error ¶
func (e ListRolesReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListRolesReqValidationError) ErrorName ¶
func (e ListRolesReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListRolesReqValidationError) Field ¶
func (e ListRolesReqValidationError) Field() string
Field function returns field value.
func (ListRolesReqValidationError) Key ¶
func (e ListRolesReqValidationError) Key() bool
Key function returns key value.
func (ListRolesReqValidationError) Reason ¶
func (e ListRolesReqValidationError) Reason() string
Reason function returns reason value.
type ListRolesResp ¶
type ListRolesResp struct { Roles []*RoleDefinition `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*ListRolesResp) Descriptor
deprecated
func (*ListRolesResp) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesResp.ProtoReflect.Descriptor instead.
func (*ListRolesResp) GetRoles ¶
func (x *ListRolesResp) GetRoles() []*RoleDefinition
func (*ListRolesResp) ProtoMessage ¶
func (*ListRolesResp) ProtoMessage()
func (*ListRolesResp) ProtoReflect ¶
func (x *ListRolesResp) ProtoReflect() protoreflect.Message
func (*ListRolesResp) Reset ¶
func (x *ListRolesResp) Reset()
func (*ListRolesResp) String ¶
func (x *ListRolesResp) String() string
func (*ListRolesResp) Validate ¶
func (m *ListRolesResp) Validate() error
Validate checks the field values on ListRolesResp 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 (*ListRolesResp) ValidateAll ¶
func (m *ListRolesResp) ValidateAll() error
ValidateAll checks the field values on ListRolesResp 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 ListRolesRespMultiError, or nil if none found.
type ListRolesRespMultiError ¶
type ListRolesRespMultiError []error
ListRolesRespMultiError is an error wrapping multiple validation errors returned by ListRolesResp.ValidateAll() if the designated constraints aren't met.
func (ListRolesRespMultiError) AllErrors ¶
func (m ListRolesRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRolesRespMultiError) Error ¶
func (m ListRolesRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRolesRespValidationError ¶
type ListRolesRespValidationError struct {
// contains filtered or unexported fields
}
ListRolesRespValidationError is the validation error returned by ListRolesResp.Validate if the designated constraints aren't met.
func (ListRolesRespValidationError) Cause ¶
func (e ListRolesRespValidationError) Cause() error
Cause function returns cause value.
func (ListRolesRespValidationError) Error ¶
func (e ListRolesRespValidationError) Error() string
Error satisfies the builtin error interface
func (ListRolesRespValidationError) ErrorName ¶
func (e ListRolesRespValidationError) ErrorName() string
ErrorName returns error name.
func (ListRolesRespValidationError) Field ¶
func (e ListRolesRespValidationError) Field() string
Field function returns field value.
func (ListRolesRespValidationError) Key ¶
func (e ListRolesRespValidationError) Key() bool
Key function returns key value.
func (ListRolesRespValidationError) Reason ¶
func (e ListRolesRespValidationError) Reason() string
Reason function returns reason value.
type ListUsersReq ¶
type ListUsersReq struct { PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListUsersReq) Descriptor
deprecated
func (*ListUsersReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersReq.ProtoReflect.Descriptor instead.
func (*ListUsersReq) GetPageSize ¶
func (x *ListUsersReq) GetPageSize() int32
func (*ListUsersReq) GetPageToken ¶
func (x *ListUsersReq) GetPageToken() string
func (*ListUsersReq) ProtoMessage ¶
func (*ListUsersReq) ProtoMessage()
func (*ListUsersReq) ProtoReflect ¶
func (x *ListUsersReq) ProtoReflect() protoreflect.Message
func (*ListUsersReq) Reset ¶
func (x *ListUsersReq) Reset()
func (*ListUsersReq) String ¶
func (x *ListUsersReq) String() string
func (*ListUsersReq) Validate ¶
func (m *ListUsersReq) Validate() error
Validate checks the field values on ListUsersReq 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 (*ListUsersReq) ValidateAll ¶
func (m *ListUsersReq) ValidateAll() error
ValidateAll checks the field values on ListUsersReq 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 ListUsersReqMultiError, or nil if none found.
type ListUsersReqMultiError ¶
type ListUsersReqMultiError []error
ListUsersReqMultiError is an error wrapping multiple validation errors returned by ListUsersReq.ValidateAll() if the designated constraints aren't met.
func (ListUsersReqMultiError) AllErrors ¶
func (m ListUsersReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUsersReqMultiError) Error ¶
func (m ListUsersReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUsersReqValidationError ¶
type ListUsersReqValidationError struct {
// contains filtered or unexported fields
}
ListUsersReqValidationError is the validation error returned by ListUsersReq.Validate if the designated constraints aren't met.
func (ListUsersReqValidationError) Cause ¶
func (e ListUsersReqValidationError) Cause() error
Cause function returns cause value.
func (ListUsersReqValidationError) Error ¶
func (e ListUsersReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersReqValidationError) ErrorName ¶
func (e ListUsersReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersReqValidationError) Field ¶
func (e ListUsersReqValidationError) Field() string
Field function returns field value.
func (ListUsersReqValidationError) Key ¶
func (e ListUsersReqValidationError) Key() bool
Key function returns key value.
func (ListUsersReqValidationError) Reason ¶
func (e ListUsersReqValidationError) Reason() string
Reason function returns reason value.
type ListUsersResp ¶
type ListUsersResp struct { Users []*SettingsUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResp) Descriptor
deprecated
func (*ListUsersResp) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResp.ProtoReflect.Descriptor instead.
func (*ListUsersResp) GetNextPageToken ¶
func (x *ListUsersResp) GetNextPageToken() string
func (*ListUsersResp) GetUsers ¶
func (x *ListUsersResp) GetUsers() []*SettingsUser
func (*ListUsersResp) ProtoMessage ¶
func (*ListUsersResp) ProtoMessage()
func (*ListUsersResp) ProtoReflect ¶
func (x *ListUsersResp) ProtoReflect() protoreflect.Message
func (*ListUsersResp) Reset ¶
func (x *ListUsersResp) Reset()
func (*ListUsersResp) String ¶
func (x *ListUsersResp) String() string
func (*ListUsersResp) Validate ¶
func (m *ListUsersResp) Validate() error
Validate checks the field values on ListUsersResp 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 (*ListUsersResp) ValidateAll ¶
func (m *ListUsersResp) ValidateAll() error
ValidateAll checks the field values on ListUsersResp 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 ListUsersRespMultiError, or nil if none found.
type ListUsersRespMultiError ¶
type ListUsersRespMultiError []error
ListUsersRespMultiError is an error wrapping multiple validation errors returned by ListUsersResp.ValidateAll() if the designated constraints aren't met.
func (ListUsersRespMultiError) AllErrors ¶
func (m ListUsersRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUsersRespMultiError) Error ¶
func (m ListUsersRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUsersRespValidationError ¶
type ListUsersRespValidationError struct {
// contains filtered or unexported fields
}
ListUsersRespValidationError is the validation error returned by ListUsersResp.Validate if the designated constraints aren't met.
func (ListUsersRespValidationError) Cause ¶
func (e ListUsersRespValidationError) Cause() error
Cause function returns cause value.
func (ListUsersRespValidationError) Error ¶
func (e ListUsersRespValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersRespValidationError) ErrorName ¶
func (e ListUsersRespValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersRespValidationError) Field ¶
func (e ListUsersRespValidationError) Field() string
Field function returns field value.
func (ListUsersRespValidationError) Key ¶
func (e ListUsersRespValidationError) Key() bool
Key function returns key value.
func (ListUsersRespValidationError) Reason ¶
func (e ListUsersRespValidationError) Reason() string
Reason function returns reason value.
type RoleDefinition ¶
type RoleDefinition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*RoleDefinition) Descriptor
deprecated
func (*RoleDefinition) Descriptor() ([]byte, []int)
Deprecated: Use RoleDefinition.ProtoReflect.Descriptor instead.
func (*RoleDefinition) GetDescription ¶
func (x *RoleDefinition) GetDescription() string
func (*RoleDefinition) GetName ¶
func (x *RoleDefinition) GetName() string
func (*RoleDefinition) ProtoMessage ¶
func (*RoleDefinition) ProtoMessage()
func (*RoleDefinition) ProtoReflect ¶
func (x *RoleDefinition) ProtoReflect() protoreflect.Message
func (*RoleDefinition) Reset ¶
func (x *RoleDefinition) Reset()
func (*RoleDefinition) String ¶
func (x *RoleDefinition) String() string
func (*RoleDefinition) Validate ¶
func (m *RoleDefinition) Validate() error
Validate checks the field values on RoleDefinition 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 (*RoleDefinition) ValidateAll ¶
func (m *RoleDefinition) ValidateAll() error
ValidateAll checks the field values on RoleDefinition 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 RoleDefinitionMultiError, or nil if none found.
type RoleDefinitionMultiError ¶
type RoleDefinitionMultiError []error
RoleDefinitionMultiError is an error wrapping multiple validation errors returned by RoleDefinition.ValidateAll() if the designated constraints aren't met.
func (RoleDefinitionMultiError) AllErrors ¶
func (m RoleDefinitionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleDefinitionMultiError) Error ¶
func (m RoleDefinitionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleDefinitionValidationError ¶
type RoleDefinitionValidationError struct {
// contains filtered or unexported fields
}
RoleDefinitionValidationError is the validation error returned by RoleDefinition.Validate if the designated constraints aren't met.
func (RoleDefinitionValidationError) Cause ¶
func (e RoleDefinitionValidationError) Cause() error
Cause function returns cause value.
func (RoleDefinitionValidationError) Error ¶
func (e RoleDefinitionValidationError) Error() string
Error satisfies the builtin error interface
func (RoleDefinitionValidationError) ErrorName ¶
func (e RoleDefinitionValidationError) ErrorName() string
ErrorName returns error name.
func (RoleDefinitionValidationError) Field ¶
func (e RoleDefinitionValidationError) Field() string
Field function returns field value.
func (RoleDefinitionValidationError) Key ¶
func (e RoleDefinitionValidationError) Key() bool
Key function returns key value.
func (RoleDefinitionValidationError) Reason ¶
func (e RoleDefinitionValidationError) Reason() string
Reason function returns reason value.
type SetRolesReq ¶
type SetRolesReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*SetRolesReq) Descriptor
deprecated
func (*SetRolesReq) Descriptor() ([]byte, []int)
Deprecated: Use SetRolesReq.ProtoReflect.Descriptor instead.
func (*SetRolesReq) GetRoles ¶
func (x *SetRolesReq) GetRoles() []string
func (*SetRolesReq) GetUserId ¶
func (x *SetRolesReq) GetUserId() string
func (*SetRolesReq) ProtoMessage ¶
func (*SetRolesReq) ProtoMessage()
func (*SetRolesReq) ProtoReflect ¶
func (x *SetRolesReq) ProtoReflect() protoreflect.Message
func (*SetRolesReq) Reset ¶
func (x *SetRolesReq) Reset()
func (*SetRolesReq) String ¶
func (x *SetRolesReq) String() string
func (*SetRolesReq) Validate ¶
func (m *SetRolesReq) Validate() error
Validate checks the field values on SetRolesReq 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 (*SetRolesReq) ValidateAll ¶
func (m *SetRolesReq) ValidateAll() error
ValidateAll checks the field values on SetRolesReq 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 SetRolesReqMultiError, or nil if none found.
type SetRolesReqMultiError ¶
type SetRolesReqMultiError []error
SetRolesReqMultiError is an error wrapping multiple validation errors returned by SetRolesReq.ValidateAll() if the designated constraints aren't met.
func (SetRolesReqMultiError) AllErrors ¶
func (m SetRolesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRolesReqMultiError) Error ¶
func (m SetRolesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRolesReqValidationError ¶
type SetRolesReqValidationError struct {
// contains filtered or unexported fields
}
SetRolesReqValidationError is the validation error returned by SetRolesReq.Validate if the designated constraints aren't met.
func (SetRolesReqValidationError) Cause ¶
func (e SetRolesReqValidationError) Cause() error
Cause function returns cause value.
func (SetRolesReqValidationError) Error ¶
func (e SetRolesReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetRolesReqValidationError) ErrorName ¶
func (e SetRolesReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetRolesReqValidationError) Field ¶
func (e SetRolesReqValidationError) Field() string
Field function returns field value.
func (SetRolesReqValidationError) Key ¶
func (e SetRolesReqValidationError) Key() bool
Key function returns key value.
func (SetRolesReqValidationError) Reason ¶
func (e SetRolesReqValidationError) Reason() string
Reason function returns reason value.
type SetRolesResp ¶
type SetRolesResp struct {
// contains filtered or unexported fields
}
func (*SetRolesResp) Descriptor
deprecated
func (*SetRolesResp) Descriptor() ([]byte, []int)
Deprecated: Use SetRolesResp.ProtoReflect.Descriptor instead.
func (*SetRolesResp) ProtoMessage ¶
func (*SetRolesResp) ProtoMessage()
func (*SetRolesResp) ProtoReflect ¶
func (x *SetRolesResp) ProtoReflect() protoreflect.Message
func (*SetRolesResp) Reset ¶
func (x *SetRolesResp) Reset()
func (*SetRolesResp) String ¶
func (x *SetRolesResp) String() string
func (*SetRolesResp) Validate ¶
func (m *SetRolesResp) Validate() error
Validate checks the field values on SetRolesResp 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 (*SetRolesResp) ValidateAll ¶
func (m *SetRolesResp) ValidateAll() error
ValidateAll checks the field values on SetRolesResp 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 SetRolesRespMultiError, or nil if none found.
type SetRolesRespMultiError ¶
type SetRolesRespMultiError []error
SetRolesRespMultiError is an error wrapping multiple validation errors returned by SetRolesResp.ValidateAll() if the designated constraints aren't met.
func (SetRolesRespMultiError) AllErrors ¶
func (m SetRolesRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRolesRespMultiError) Error ¶
func (m SetRolesRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRolesRespValidationError ¶
type SetRolesRespValidationError struct {
// contains filtered or unexported fields
}
SetRolesRespValidationError is the validation error returned by SetRolesResp.Validate if the designated constraints aren't met.
func (SetRolesRespValidationError) Cause ¶
func (e SetRolesRespValidationError) Cause() error
Cause function returns cause value.
func (SetRolesRespValidationError) Error ¶
func (e SetRolesRespValidationError) Error() string
Error satisfies the builtin error interface
func (SetRolesRespValidationError) ErrorName ¶
func (e SetRolesRespValidationError) ErrorName() string
ErrorName returns error name.
func (SetRolesRespValidationError) Field ¶
func (e SetRolesRespValidationError) Field() string
Field function returns field value.
func (SetRolesRespValidationError) Key ¶
func (e SetRolesRespValidationError) Key() bool
Key function returns key value.
func (SetRolesRespValidationError) Reason ¶
func (e SetRolesRespValidationError) Reason() string
Reason function returns reason value.
type SettingsUser ¶
type SettingsUser struct { User *users.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*SettingsUser) Descriptor
deprecated
func (*SettingsUser) Descriptor() ([]byte, []int)
Deprecated: Use SettingsUser.ProtoReflect.Descriptor instead.
func (*SettingsUser) GetRoles ¶
func (x *SettingsUser) GetRoles() []string
func (*SettingsUser) GetUser ¶
func (x *SettingsUser) GetUser() *users.User
func (*SettingsUser) ProtoMessage ¶
func (*SettingsUser) ProtoMessage()
func (*SettingsUser) ProtoReflect ¶
func (x *SettingsUser) ProtoReflect() protoreflect.Message
func (*SettingsUser) Reset ¶
func (x *SettingsUser) Reset()
func (*SettingsUser) String ¶
func (x *SettingsUser) String() string
func (*SettingsUser) Validate ¶
func (m *SettingsUser) Validate() error
Validate checks the field values on SettingsUser 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 (*SettingsUser) ValidateAll ¶
func (m *SettingsUser) ValidateAll() error
ValidateAll checks the field values on SettingsUser 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 SettingsUserMultiError, or nil if none found.
type SettingsUserMultiError ¶
type SettingsUserMultiError []error
SettingsUserMultiError is an error wrapping multiple validation errors returned by SettingsUser.ValidateAll() if the designated constraints aren't met.
func (SettingsUserMultiError) AllErrors ¶
func (m SettingsUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingsUserMultiError) Error ¶
func (m SettingsUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingsUserValidationError ¶
type SettingsUserValidationError struct {
// contains filtered or unexported fields
}
SettingsUserValidationError is the validation error returned by SettingsUser.Validate if the designated constraints aren't met.
func (SettingsUserValidationError) Cause ¶
func (e SettingsUserValidationError) Cause() error
Cause function returns cause value.
func (SettingsUserValidationError) Error ¶
func (e SettingsUserValidationError) Error() string
Error satisfies the builtin error interface
func (SettingsUserValidationError) ErrorName ¶
func (e SettingsUserValidationError) ErrorName() string
ErrorName returns error name.
func (SettingsUserValidationError) Field ¶
func (e SettingsUserValidationError) Field() string
Field function returns field value.
func (SettingsUserValidationError) Key ¶
func (e SettingsUserValidationError) Key() bool
Key function returns key value.
func (SettingsUserValidationError) Reason ¶
func (e SettingsUserValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUsersSettingsManagerServer ¶
type UnimplementedUsersSettingsManagerServer struct { }
UnimplementedUsersSettingsManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersSettingsManagerServer) GetUser ¶
func (UnimplementedUsersSettingsManagerServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
func (UnimplementedUsersSettingsManagerServer) ListRoles ¶
func (UnimplementedUsersSettingsManagerServer) ListRoles(context.Context, *ListRolesReq) (*ListRolesResp, error)
func (UnimplementedUsersSettingsManagerServer) ListUsers ¶
func (UnimplementedUsersSettingsManagerServer) ListUsers(context.Context, *ListUsersReq) (*ListUsersResp, error)
func (UnimplementedUsersSettingsManagerServer) SetRoles ¶
func (UnimplementedUsersSettingsManagerServer) SetRoles(context.Context, *SetRolesReq) (*SetRolesResp, error)
type UnsafeUsersSettingsManagerServer ¶
type UnsafeUsersSettingsManagerServer interface {
// contains filtered or unexported methods
}
UnsafeUsersSettingsManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersSettingsManagerServer will result in compilation errors.
type UsersSettingsManagerClient ¶
type UsersSettingsManagerClient interface { GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) ListUsers(ctx context.Context, in *ListUsersReq, opts ...grpc.CallOption) (*ListUsersResp, error) ListRoles(ctx context.Context, in *ListRolesReq, opts ...grpc.CallOption) (*ListRolesResp, error) SetRoles(ctx context.Context, in *SetRolesReq, opts ...grpc.CallOption) (*SetRolesResp, error) }
UsersSettingsManagerClient is the client API for UsersSettingsManager 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 NewUsersSettingsManagerClient ¶
func NewUsersSettingsManagerClient(cc grpc.ClientConnInterface) UsersSettingsManagerClient
type UsersSettingsManagerServer ¶
type UsersSettingsManagerServer interface { GetUser(context.Context, *GetUserReq) (*GetUserResp, error) ListUsers(context.Context, *ListUsersReq) (*ListUsersResp, error) ListRoles(context.Context, *ListRolesReq) (*ListRolesResp, error) SetRoles(context.Context, *SetRolesReq) (*SetRolesResp, error) // contains filtered or unexported methods }
UsersSettingsManagerServer is the server API for UsersSettingsManager service. All implementations must embed UnimplementedUsersSettingsManagerServer for forward compatibility