Documentation
¶
Index ¶
- Variables
- func RegisterRoleServiceServer(s *grpc.Server, srv RoleServiceServer)
- type FetchUserRolesRequest
- func (*FetchUserRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUserRolesRequest) GetUserId() string
- func (*FetchUserRolesRequest) ProtoMessage()
- func (x *FetchUserRolesRequest) ProtoReflect() protoreflect.Message
- func (x *FetchUserRolesRequest) Reset()
- func (x *FetchUserRolesRequest) String() string
- type FetchUserRolesResponse
- func (*FetchUserRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUserRolesResponse) GetRoles() []*Role
- func (*FetchUserRolesResponse) ProtoMessage()
- func (x *FetchUserRolesResponse) ProtoReflect() protoreflect.Message
- func (x *FetchUserRolesResponse) Reset()
- func (x *FetchUserRolesResponse) String() string
- type GetAllRolesResponse
- func (*GetAllRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllRolesResponse) GetUserIds() []string
- func (*GetAllRolesResponse) ProtoMessage()
- func (x *GetAllRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllRolesResponse) Reset()
- func (x *GetAllRolesResponse) String() string
- type Role
- type RoleServiceClient
- type RoleServiceServer
- type UnimplementedRoleServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_protobuf_spec_connection_roles_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRoleServiceServer ¶
func RegisterRoleServiceServer(s *grpc.Server, srv RoleServiceServer)
Types ¶
type FetchUserRolesRequest ¶ added in v1.17.0
type FetchUserRolesRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*FetchUserRolesRequest) Descriptor
deprecated
added in
v1.17.0
func (*FetchUserRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchUserRolesRequest.ProtoReflect.Descriptor instead.
func (*FetchUserRolesRequest) GetUserId ¶ added in v1.17.0
func (x *FetchUserRolesRequest) GetUserId() string
func (*FetchUserRolesRequest) ProtoMessage ¶ added in v1.17.0
func (*FetchUserRolesRequest) ProtoMessage()
func (*FetchUserRolesRequest) ProtoReflect ¶ added in v1.17.0
func (x *FetchUserRolesRequest) ProtoReflect() protoreflect.Message
func (*FetchUserRolesRequest) Reset ¶ added in v1.17.0
func (x *FetchUserRolesRequest) Reset()
func (*FetchUserRolesRequest) String ¶ added in v1.17.0
func (x *FetchUserRolesRequest) String() string
type FetchUserRolesResponse ¶ added in v1.17.0
type FetchUserRolesResponse struct { Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*FetchUserRolesResponse) Descriptor
deprecated
added in
v1.17.0
func (*FetchUserRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchUserRolesResponse.ProtoReflect.Descriptor instead.
func (*FetchUserRolesResponse) GetRoles ¶ added in v1.17.0
func (x *FetchUserRolesResponse) GetRoles() []*Role
func (*FetchUserRolesResponse) ProtoMessage ¶ added in v1.17.0
func (*FetchUserRolesResponse) ProtoMessage()
func (*FetchUserRolesResponse) ProtoReflect ¶ added in v1.17.0
func (x *FetchUserRolesResponse) ProtoReflect() protoreflect.Message
func (*FetchUserRolesResponse) Reset ¶ added in v1.17.0
func (x *FetchUserRolesResponse) Reset()
func (*FetchUserRolesResponse) String ¶ added in v1.17.0
func (x *FetchUserRolesResponse) String() string
type GetAllRolesResponse ¶
type GetAllRolesResponse struct { UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*GetAllRolesResponse) Descriptor
deprecated
func (*GetAllRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRolesResponse.ProtoReflect.Descriptor instead.
func (*GetAllRolesResponse) GetUserIds ¶
func (x *GetAllRolesResponse) GetUserIds() []string
func (*GetAllRolesResponse) ProtoMessage ¶
func (*GetAllRolesResponse) ProtoMessage()
func (*GetAllRolesResponse) ProtoReflect ¶
func (x *GetAllRolesResponse) ProtoReflect() protoreflect.Message
func (*GetAllRolesResponse) Reset ¶
func (x *GetAllRolesResponse) Reset()
func (*GetAllRolesResponse) String ¶
func (x *GetAllRolesResponse) String() string
type Role ¶ added in v1.17.0
type Role struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
added in
v1.17.0
func (*Role) ProtoMessage ¶ added in v1.17.0
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶ added in v1.17.0
func (x *Role) ProtoReflect() protoreflect.Message
type RoleServiceClient ¶
type RoleServiceClient interface { FetchSupportCrew(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetAllRolesResponse, error) FetchUserRoles(ctx context.Context, in *FetchUserRolesRequest, opts ...grpc.CallOption) (*FetchUserRolesResponse, error) }
RoleServiceClient is the client API for RoleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRoleServiceClient ¶
func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient
type RoleServiceServer ¶
type RoleServiceServer interface { FetchSupportCrew(context.Context, *empty.Empty) (*GetAllRolesResponse, error) FetchUserRoles(context.Context, *FetchUserRolesRequest) (*FetchUserRolesResponse, error) }
RoleServiceServer is the server API for RoleService service.
type UnimplementedRoleServiceServer ¶
type UnimplementedRoleServiceServer struct { }
UnimplementedRoleServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRoleServiceServer) FetchSupportCrew ¶
func (*UnimplementedRoleServiceServer) FetchSupportCrew(context.Context, *empty.Empty) (*GetAllRolesResponse, error)
func (*UnimplementedRoleServiceServer) FetchUserRoles ¶ added in v1.17.0
func (*UnimplementedRoleServiceServer) FetchUserRoles(context.Context, *FetchUserRolesRequest) (*FetchUserRolesResponse, error)
Click to show internal directories.
Click to hide internal directories.