Documentation ¶
Index ¶
Constants ¶
const (
AuthService_GetRole_FullMethodName = "/api.AuthService/GetRole"
)
Variables ¶
var ( Role_name = map[int32]string{ 0: "ADMIN_ROLE", 1: "CLIENT_ROLE", } Role_value = map[string]int32{ "ADMIN_ROLE": 0, "CLIENT_ROLE": 1, } )
Enum value maps for Role.
var ( Platform_name = map[int32]string{ 0: "VK", } Platform_value = map[string]int32{ "VK": 0, } )
Enum value maps for Platform.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRole", Handler: _AuthService_GetRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1api.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error)
}
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type ClientId ¶
type ClientId struct { Platform Platform `protobuf:"varint,1,opt,name=platform,proto3,enum=api.Platform" json:"platform,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ClientId) Descriptor
deprecated
func (*ClientId) GetPlatform ¶
func (*ClientId) ProtoMessage ¶
func (*ClientId) ProtoMessage()
func (*ClientId) ProtoReflect ¶
func (x *ClientId) ProtoReflect() protoreflect.Message
type GetRoleRequest ¶
type GetRoleRequest struct { Id *ClientId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() *ClientId
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
type GetRoleResponse ¶
type GetRoleResponse struct { Role Role `protobuf:"varint,1,opt,name=role,proto3,enum=api.Role" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetRoleResponse) Descriptor
deprecated
func (*GetRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
func (*GetRoleResponse) GetRole ¶
func (x *GetRoleResponse) GetRole() Role
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) ProtoReflect ¶
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
func (*GetRoleResponse) Reset ¶
func (x *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (x *GetRoleResponse) String() string
type Platform ¶
type Platform int32
const (
Platform_VK Platform = 0
)
func (Platform) Descriptor ¶
func (Platform) Descriptor() protoreflect.EnumDescriptor
func (Platform) EnumDescriptor
deprecated
func (Platform) Number ¶
func (x Platform) Number() protoreflect.EnumNumber
func (Platform) Type ¶
func (Platform) Type() protoreflect.EnumType
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) GetRole ¶
func (UnimplementedAuthServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.