Documentation
¶
Index ¶
- Variables
- func RegisterAuthServiceV1Server(s grpc.ServiceRegistrar, srv AuthServiceV1Server)
- type AuthRequestV1
- func (*AuthRequestV1) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequestV1) GetToken() string
- func (x *AuthRequestV1) GetType() string
- func (*AuthRequestV1) ProtoMessage()
- func (x *AuthRequestV1) ProtoReflect() protoreflect.Message
- func (x *AuthRequestV1) Reset()
- func (x *AuthRequestV1) String() string
- type AuthResponseV1
- func (*AuthResponseV1) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponseV1) GetKey() string
- func (x *AuthResponseV1) GetUID() uint64
- func (*AuthResponseV1) ProtoMessage()
- func (x *AuthResponseV1) ProtoReflect() protoreflect.Message
- func (x *AuthResponseV1) Reset()
- func (x *AuthResponseV1) String() string
- type AuthServiceV1Client
- type AuthServiceV1Server
- type UnimplementedAuthServiceV1Server
- type UnsafeAuthServiceV1Server
Constants ¶
This section is empty.
Variables ¶
var AuthServiceV1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authServiceV1", HandlerType: (*AuthServiceV1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckV1", Handler: _AuthServiceV1_CheckV1_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth_v1.proto", }
AuthServiceV1_ServiceDesc is the grpc.ServiceDesc for AuthServiceV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceV1Server ¶
func RegisterAuthServiceV1Server(s grpc.ServiceRegistrar, srv AuthServiceV1Server)
Types ¶
type AuthRequestV1 ¶
type AuthRequestV1 struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*AuthRequestV1) Descriptor
deprecated
func (*AuthRequestV1) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequestV1.ProtoReflect.Descriptor instead.
func (*AuthRequestV1) GetToken ¶
func (x *AuthRequestV1) GetToken() string
func (*AuthRequestV1) GetType ¶
func (x *AuthRequestV1) GetType() string
func (*AuthRequestV1) ProtoMessage ¶
func (*AuthRequestV1) ProtoMessage()
func (*AuthRequestV1) ProtoReflect ¶
func (x *AuthRequestV1) ProtoReflect() protoreflect.Message
func (*AuthRequestV1) Reset ¶
func (x *AuthRequestV1) Reset()
func (*AuthRequestV1) String ¶
func (x *AuthRequestV1) String() string
type AuthResponseV1 ¶
type AuthResponseV1 struct {
UID uint64 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"`
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*AuthResponseV1) Descriptor
deprecated
func (*AuthResponseV1) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponseV1.ProtoReflect.Descriptor instead.
func (*AuthResponseV1) GetKey ¶
func (x *AuthResponseV1) GetKey() string
func (*AuthResponseV1) GetUID ¶
func (x *AuthResponseV1) GetUID() uint64
func (*AuthResponseV1) ProtoMessage ¶
func (*AuthResponseV1) ProtoMessage()
func (*AuthResponseV1) ProtoReflect ¶
func (x *AuthResponseV1) ProtoReflect() protoreflect.Message
func (*AuthResponseV1) Reset ¶
func (x *AuthResponseV1) Reset()
func (*AuthResponseV1) String ¶
func (x *AuthResponseV1) String() string
type AuthServiceV1Client ¶
type AuthServiceV1Client interface {
CheckV1(ctx context.Context, in *AuthRequestV1, opts ...grpc.CallOption) (*AuthResponseV1, error)
}
AuthServiceV1Client is the client API for AuthServiceV1 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 NewAuthServiceV1Client ¶
func NewAuthServiceV1Client(cc grpc.ClientConnInterface) AuthServiceV1Client
type AuthServiceV1Server ¶
type AuthServiceV1Server interface {
CheckV1(context.Context, *AuthRequestV1) (*AuthResponseV1, error)
// contains filtered or unexported methods
}
AuthServiceV1Server is the server API for AuthServiceV1 service. All implementations must embed UnimplementedAuthServiceV1Server for forward compatibility
type UnimplementedAuthServiceV1Server ¶
type UnimplementedAuthServiceV1Server struct {
}
UnimplementedAuthServiceV1Server must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceV1Server) CheckV1 ¶
func (UnimplementedAuthServiceV1Server) CheckV1(context.Context, *AuthRequestV1) (*AuthResponseV1, error)
type UnsafeAuthServiceV1Server ¶
type UnsafeAuthServiceV1Server interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceV1Server will result in compilation errors.