rolepb

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetName added in v1.17.0

func (x *Role) GetName() string

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

func (*Role) Reset added in v1.17.0

func (x *Role) Reset()

func (*Role) String added in v1.17.0

func (x *Role) String() string

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.

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) FetchUserRoles added in v1.17.0

Jump to

Keyboard shortcuts

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