auth_api

package
v0.0.0-...-23ae872 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth_api.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckSession",
			Handler:    _AuthService_CheckSession_Handler,
		},
		{
			MethodName: "UserName",
			Handler:    _AuthService_UserName_Handler,
		},
		{
			MethodName: "UserShard",
			Handler:    _AuthService_UserShard_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth.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)

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	CheckSession(ctx context.Context, in *CheckSessionRequest, opts ...grpc.CallOption) (*CheckSessionResponse, error)
	UserName(ctx context.Context, in *UserNameRequest, opts ...grpc.CallOption) (*UserNameResponse, error)
	UserShard(ctx context.Context, in *UserShardRequest, opts ...grpc.CallOption) (*UserShardResponse, 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.

type AuthServiceServer

type AuthServiceServer interface {
	CheckSession(context.Context, *CheckSessionRequest) (*CheckSessionResponse, error)
	UserName(context.Context, *UserNameRequest) (*UserNameResponse, error)
	UserShard(context.Context, *UserShardRequest) (*UserShardResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type CheckSessionRequest

type CheckSessionRequest struct {
	JwtToken string `protobuf:"bytes,1,opt,name=jwt_token,json=jwtToken,proto3" json:"jwt_token,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckSessionRequest) Descriptor deprecated

func (*CheckSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckSessionRequest.ProtoReflect.Descriptor instead.

func (*CheckSessionRequest) GetJwtToken

func (x *CheckSessionRequest) GetJwtToken() string

func (*CheckSessionRequest) ProtoMessage

func (*CheckSessionRequest) ProtoMessage()

func (*CheckSessionRequest) ProtoReflect

func (x *CheckSessionRequest) ProtoReflect() protoreflect.Message

func (*CheckSessionRequest) Reset

func (x *CheckSessionRequest) Reset()

func (*CheckSessionRequest) String

func (x *CheckSessionRequest) String() string

type CheckSessionResponse

type CheckSessionResponse struct {
	Ok       bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	UserId   int64  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	JwtToken string `protobuf:"bytes,3,opt,name=jwt_token,json=jwtToken,proto3" json:"jwt_token,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckSessionResponse) Descriptor deprecated

func (*CheckSessionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckSessionResponse.ProtoReflect.Descriptor instead.

func (*CheckSessionResponse) GetJwtToken

func (x *CheckSessionResponse) GetJwtToken() string

func (*CheckSessionResponse) GetOk

func (x *CheckSessionResponse) GetOk() bool

func (*CheckSessionResponse) GetUserId

func (x *CheckSessionResponse) GetUserId() int64

func (*CheckSessionResponse) ProtoMessage

func (*CheckSessionResponse) ProtoMessage()

func (*CheckSessionResponse) ProtoReflect

func (x *CheckSessionResponse) ProtoReflect() protoreflect.Message

func (*CheckSessionResponse) Reset

func (x *CheckSessionResponse) Reset()

func (*CheckSessionResponse) String

func (x *CheckSessionResponse) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) CheckSession

func (UnimplementedAuthServiceServer) UserName

func (UnimplementedAuthServiceServer) UserShard

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.

type UserNameRequest

type UserNameRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserNameRequest) Descriptor deprecated

func (*UserNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserNameRequest.ProtoReflect.Descriptor instead.

func (*UserNameRequest) GetUserId

func (x *UserNameRequest) GetUserId() int64

func (*UserNameRequest) ProtoMessage

func (*UserNameRequest) ProtoMessage()

func (*UserNameRequest) ProtoReflect

func (x *UserNameRequest) ProtoReflect() protoreflect.Message

func (*UserNameRequest) Reset

func (x *UserNameRequest) Reset()

func (*UserNameRequest) String

func (x *UserNameRequest) String() string

type UserNameResponse

type UserNameResponse struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	// contains filtered or unexported fields
}

func (*UserNameResponse) Descriptor deprecated

func (*UserNameResponse) Descriptor() ([]byte, []int)

Deprecated: Use UserNameResponse.ProtoReflect.Descriptor instead.

func (*UserNameResponse) GetUserName

func (x *UserNameResponse) GetUserName() string

func (*UserNameResponse) ProtoMessage

func (*UserNameResponse) ProtoMessage()

func (*UserNameResponse) ProtoReflect

func (x *UserNameResponse) ProtoReflect() protoreflect.Message

func (*UserNameResponse) Reset

func (x *UserNameResponse) Reset()

func (*UserNameResponse) String

func (x *UserNameResponse) String() string

type UserShardRequest

type UserShardRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserShardRequest) Descriptor deprecated

func (*UserShardRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserShardRequest.ProtoReflect.Descriptor instead.

func (*UserShardRequest) GetUserId

func (x *UserShardRequest) GetUserId() int64

func (*UserShardRequest) ProtoMessage

func (*UserShardRequest) ProtoMessage()

func (*UserShardRequest) ProtoReflect

func (x *UserShardRequest) ProtoReflect() protoreflect.Message

func (*UserShardRequest) Reset

func (x *UserShardRequest) Reset()

func (*UserShardRequest) String

func (x *UserShardRequest) String() string

type UserShardResponse

type UserShardResponse struct {
	ShardId string `protobuf:"bytes,1,opt,name=ShardId,proto3" json:"ShardId,omitempty"`
	// contains filtered or unexported fields
}

func (*UserShardResponse) Descriptor deprecated

func (*UserShardResponse) Descriptor() ([]byte, []int)

Deprecated: Use UserShardResponse.ProtoReflect.Descriptor instead.

func (*UserShardResponse) GetShardId

func (x *UserShardResponse) GetShardId() string

func (*UserShardResponse) ProtoMessage

func (*UserShardResponse) ProtoMessage()

func (*UserShardResponse) ProtoReflect

func (x *UserShardResponse) ProtoReflect() protoreflect.Message

func (*UserShardResponse) Reset

func (x *UserShardResponse) Reset()

func (*UserShardResponse) String

func (x *UserShardResponse) String() string

Jump to

Keyboard shortcuts

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