Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthServer
- type SignUpUserByTelegramRequest
- func (*SignUpUserByTelegramRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpUserByTelegramRequest) GetChatId() int64
- func (x *SignUpUserByTelegramRequest) GetFirstName() string
- func (x *SignUpUserByTelegramRequest) GetLanguageCode() string
- func (x *SignUpUserByTelegramRequest) GetLastName() string
- func (x *SignUpUserByTelegramRequest) GetUserName() string
- func (*SignUpUserByTelegramRequest) ProtoMessage()
- func (x *SignUpUserByTelegramRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpUserByTelegramRequest) Reset()
- func (x *SignUpUserByTelegramRequest) String() string
- type UnimplementedAuthServer
- type UnsafeAuthServer
Constants ¶
This section is empty.
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "binance_converter.backend_api.auth.auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUpUserByTelegram", Handler: _Auth_SignUpUserByTelegram_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface {
SignUpUserByTelegram(ctx context.Context, in *SignUpUserByTelegramRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { SignUpUserByTelegram(context.Context, *SignUpUserByTelegramRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type SignUpUserByTelegramRequest ¶
type SignUpUserByTelegramRequest struct { ChatId int64 `protobuf:"varint,1,opt,name=chatId,proto3" json:"chatId,omitempty"` UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` FirstName string `protobuf:"bytes,3,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,4,opt,name=lastName,proto3" json:"lastName,omitempty"` LanguageCode string `protobuf:"bytes,5,opt,name=languageCode,proto3" json:"languageCode,omitempty"` // contains filtered or unexported fields }
func (*SignUpUserByTelegramRequest) Descriptor
deprecated
func (*SignUpUserByTelegramRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpUserByTelegramRequest.ProtoReflect.Descriptor instead.
func (*SignUpUserByTelegramRequest) GetChatId ¶
func (x *SignUpUserByTelegramRequest) GetChatId() int64
func (*SignUpUserByTelegramRequest) GetFirstName ¶
func (x *SignUpUserByTelegramRequest) GetFirstName() string
func (*SignUpUserByTelegramRequest) GetLanguageCode ¶
func (x *SignUpUserByTelegramRequest) GetLanguageCode() string
func (*SignUpUserByTelegramRequest) GetLastName ¶
func (x *SignUpUserByTelegramRequest) GetLastName() string
func (*SignUpUserByTelegramRequest) GetUserName ¶
func (x *SignUpUserByTelegramRequest) GetUserName() string
func (*SignUpUserByTelegramRequest) ProtoMessage ¶
func (*SignUpUserByTelegramRequest) ProtoMessage()
func (*SignUpUserByTelegramRequest) ProtoReflect ¶
func (x *SignUpUserByTelegramRequest) ProtoReflect() protoreflect.Message
func (*SignUpUserByTelegramRequest) Reset ¶
func (x *SignUpUserByTelegramRequest) Reset()
func (*SignUpUserByTelegramRequest) String ¶
func (x *SignUpUserByTelegramRequest) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) SignUpUserByTelegram ¶
func (UnimplementedAuthServer) SignUpUserByTelegram(context.Context, *SignUpUserByTelegramRequest) (*emptypb.Empty, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.