organization

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package organization is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
var File_prodvana_settings_organization_users_proto protoreflect.FileDescriptor
View Source
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

Error satisfies the builtin error interface

func (GetUserReqValidationError) ErrorName

func (e GetUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserReqValidationError) Field

Field function returns field value.

func (GetUserReqValidationError) Key

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

Cause function returns cause value.

func (GetUserRespValidationError) Error

Error satisfies the builtin error interface

func (GetUserRespValidationError) ErrorName

func (e GetUserRespValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRespValidationError) Field

Field function returns field value.

func (GetUserRespValidationError) Key

Key function returns key value.

func (GetUserRespValidationError) Reason

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

Cause function returns cause value.

func (ListRolesReqValidationError) Error

Error satisfies the builtin error interface

func (ListRolesReqValidationError) ErrorName

func (e ListRolesReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListRolesReqValidationError) Field

Field function returns field value.

func (ListRolesReqValidationError) Key

Key function returns key value.

func (ListRolesReqValidationError) Reason

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

Cause function returns cause value.

func (ListRolesRespValidationError) Error

Error satisfies the builtin error interface

func (ListRolesRespValidationError) ErrorName

func (e ListRolesRespValidationError) ErrorName() string

ErrorName returns error name.

func (ListRolesRespValidationError) Field

Field function returns field value.

func (ListRolesRespValidationError) Key

Key function returns key value.

func (ListRolesRespValidationError) Reason

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

Cause function returns cause value.

func (ListUsersReqValidationError) Error

Error satisfies the builtin error interface

func (ListUsersReqValidationError) ErrorName

func (e ListUsersReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListUsersReqValidationError) Field

Field function returns field value.

func (ListUsersReqValidationError) Key

Key function returns key value.

func (ListUsersReqValidationError) Reason

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

Cause function returns cause value.

func (ListUsersRespValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRespValidationError) ErrorName

func (e ListUsersRespValidationError) ErrorName() string

ErrorName returns error name.

func (ListUsersRespValidationError) Field

Field function returns field value.

func (ListUsersRespValidationError) Key

Key function returns key value.

func (ListUsersRespValidationError) Reason

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

Cause function returns cause value.

func (RoleDefinitionValidationError) Error

Error satisfies the builtin error interface

func (RoleDefinitionValidationError) ErrorName

func (e RoleDefinitionValidationError) ErrorName() string

ErrorName returns error name.

func (RoleDefinitionValidationError) Field

Field function returns field value.

func (RoleDefinitionValidationError) Key

Key function returns key value.

func (RoleDefinitionValidationError) Reason

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

Cause function returns cause value.

func (SetRolesReqValidationError) Error

Error satisfies the builtin error interface

func (SetRolesReqValidationError) ErrorName

func (e SetRolesReqValidationError) ErrorName() string

ErrorName returns error name.

func (SetRolesReqValidationError) Field

Field function returns field value.

func (SetRolesReqValidationError) Key

Key function returns key value.

func (SetRolesReqValidationError) Reason

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

Cause function returns cause value.

func (SetRolesRespValidationError) Error

Error satisfies the builtin error interface

func (SetRolesRespValidationError) ErrorName

func (e SetRolesRespValidationError) ErrorName() string

ErrorName returns error name.

func (SetRolesRespValidationError) Field

Field function returns field value.

func (SetRolesRespValidationError) Key

Key function returns key value.

func (SetRolesRespValidationError) Reason

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

Cause function returns cause value.

func (SettingsUserValidationError) Error

Error satisfies the builtin error interface

func (SettingsUserValidationError) ErrorName

func (e SettingsUserValidationError) ErrorName() string

ErrorName returns error name.

func (SettingsUserValidationError) Field

Field function returns field value.

func (SettingsUserValidationError) Key

Key function returns key value.

func (SettingsUserValidationError) Reason

Reason function returns reason value.

type UnimplementedUsersSettingsManagerServer

type UnimplementedUsersSettingsManagerServer struct {
}

UnimplementedUsersSettingsManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersSettingsManagerServer) GetUser

func (UnimplementedUsersSettingsManagerServer) ListRoles

func (UnimplementedUsersSettingsManagerServer) ListUsers

func (UnimplementedUsersSettingsManagerServer) SetRoles

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.

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

Jump to

Keyboard shortcuts

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