Documentation ¶
Index ¶
- Variables
- func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer)
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetModel() string
- func (x *Device) GetName() string
- func (x *Device) GetOSVersion() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type IdentityServiceClient
- type IdentityServiceServer
- type SigninReq
- func (*SigninReq) Descriptor() ([]byte, []int)deprecated
- func (x *SigninReq) GetDevice() *Device
- func (x *SigninReq) GetIPAddress() string
- func (x *SigninReq) GetIdpProvider() string
- func (x *SigninReq) GetPassword() string
- func (x *SigninReq) GetUsername() string
- func (*SigninReq) ProtoMessage()
- func (x *SigninReq) ProtoReflect() protoreflect.Message
- func (x *SigninReq) Reset()
- func (x *SigninReq) String() string
- type SigninResp
- func (*SigninResp) Descriptor() ([]byte, []int)deprecated
- func (x *SigninResp) GetAccessToken() string
- func (x *SigninResp) GetIDToken() string
- func (x *SigninResp) GetRefreshToken() string
- func (*SigninResp) ProtoMessage()
- func (x *SigninResp) ProtoReflect() protoreflect.Message
- func (x *SigninResp) Reset()
- func (x *SigninResp) String() string
- type SignupReq
- func (*SignupReq) Descriptor() ([]byte, []int)deprecated
- func (x *SignupReq) GetDevice() *Device
- func (x *SignupReq) GetEmail() string
- func (x *SignupReq) GetFirstName() string
- func (x *SignupReq) GetIPAddress() string
- func (x *SignupReq) GetLastName() string
- func (x *SignupReq) GetNickname() string
- func (x *SignupReq) GetPassword() string
- func (x *SignupReq) GetPlatform() string
- func (x *SignupReq) GetUsername() string
- func (*SignupReq) ProtoMessage()
- func (x *SignupReq) ProtoReflect() protoreflect.Message
- func (x *SignupReq) Reset()
- func (x *SignupReq) String() string
- type SignupResp
- func (*SignupResp) Descriptor() ([]byte, []int)deprecated
- func (x *SignupResp) GetAccessToken() string
- func (x *SignupResp) GetIDToken() string
- func (x *SignupResp) GetRefreshToken() string
- func (*SignupResp) ProtoMessage()
- func (x *SignupResp) ProtoReflect() protoreflect.Message
- func (x *SignupResp) Reset()
- func (x *SignupResp) String() string
- type UnimplementedIdentityServiceServer
- type UnsafeIdentityServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_identity_identity_proto protoreflect.FileDescriptor
var IdentityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "IdentityService", HandlerType: (*IdentityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Signin", Handler: _IdentityService_Signin_Handler, }, { MethodName: "Signup", Handler: _IdentityService_Signup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/identity/identity.proto", }
IdentityService_ServiceDesc is the grpc.ServiceDesc for IdentityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdentityServiceServer ¶
func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer)
Types ¶
type Device ¶
type Device struct { Model string `protobuf:"bytes,1,opt,name=Model,proto3" json:"Model,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` OSVersion string `protobuf:"bytes,3,opt,name=OSVersion,proto3" json:"OSVersion,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetOSVersion ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type IdentityServiceClient ¶
type IdentityServiceClient interface { Signin(ctx context.Context, in *SigninReq, opts ...grpc.CallOption) (*SigninResp, error) Signup(ctx context.Context, in *SignupReq, opts ...grpc.CallOption) (*SignupResp, error) }
IdentityServiceClient is the client API for IdentityService 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 NewIdentityServiceClient ¶
func NewIdentityServiceClient(cc grpc.ClientConnInterface) IdentityServiceClient
type IdentityServiceServer ¶
type IdentityServiceServer interface { Signin(context.Context, *SigninReq) (*SigninResp, error) Signup(context.Context, *SignupReq) (*SignupResp, error) }
IdentityServiceServer is the server API for IdentityService service. All implementations should embed UnimplementedIdentityServiceServer for forward compatibility
type SigninReq ¶
type SigninReq struct { Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` IPAddress string `protobuf:"bytes,3,opt,name=IPAddress,proto3" json:"IPAddress,omitempty"` Device *Device `protobuf:"bytes,4,opt,name=Device,proto3" json:"Device,omitempty"` IdpProvider string `protobuf:"bytes,5,opt,name=IdpProvider,proto3" json:"IdpProvider,omitempty"` // contains filtered or unexported fields }
func (*SigninReq) Descriptor
deprecated
func (*SigninReq) GetIPAddress ¶
func (*SigninReq) GetIdpProvider ¶
func (*SigninReq) GetPassword ¶
func (*SigninReq) GetUsername ¶
func (*SigninReq) ProtoMessage ¶
func (*SigninReq) ProtoMessage()
func (*SigninReq) ProtoReflect ¶
func (x *SigninReq) ProtoReflect() protoreflect.Message
type SigninResp ¶
type SigninResp struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken,proto3" json:"RefreshToken,omitempty"` IDToken string `protobuf:"bytes,3,opt,name=IDToken,proto3" json:"IDToken,omitempty"` // contains filtered or unexported fields }
func (*SigninResp) Descriptor
deprecated
func (*SigninResp) Descriptor() ([]byte, []int)
Deprecated: Use SigninResp.ProtoReflect.Descriptor instead.
func (*SigninResp) GetAccessToken ¶
func (x *SigninResp) GetAccessToken() string
func (*SigninResp) GetIDToken ¶
func (x *SigninResp) GetIDToken() string
func (*SigninResp) GetRefreshToken ¶
func (x *SigninResp) GetRefreshToken() string
func (*SigninResp) ProtoMessage ¶
func (*SigninResp) ProtoMessage()
func (*SigninResp) ProtoReflect ¶
func (x *SigninResp) ProtoReflect() protoreflect.Message
func (*SigninResp) Reset ¶
func (x *SigninResp) Reset()
func (*SigninResp) String ¶
func (x *SigninResp) String() string
type SignupReq ¶
type SignupReq struct { Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=Nickname,proto3" json:"Nickname,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=FirstName,proto3" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,5,opt,name=LastName,proto3" json:"LastName,omitempty"` Email string `protobuf:"bytes,6,opt,name=Email,proto3" json:"Email,omitempty"` IPAddress string `protobuf:"bytes,7,opt,name=IPAddress,proto3" json:"IPAddress,omitempty"` Platform string `protobuf:"bytes,8,opt,name=Platform,proto3" json:"Platform,omitempty"` Device *Device `protobuf:"bytes,9,opt,name=Device,proto3" json:"Device,omitempty"` // contains filtered or unexported fields }
func (*SignupReq) Descriptor
deprecated
func (*SignupReq) GetFirstName ¶
func (*SignupReq) GetIPAddress ¶
func (*SignupReq) GetLastName ¶
func (*SignupReq) GetNickname ¶
func (*SignupReq) GetPassword ¶
func (*SignupReq) GetPlatform ¶
func (*SignupReq) GetUsername ¶
func (*SignupReq) ProtoMessage ¶
func (*SignupReq) ProtoMessage()
func (*SignupReq) ProtoReflect ¶
func (x *SignupReq) ProtoReflect() protoreflect.Message
type SignupResp ¶
type SignupResp struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken,proto3" json:"RefreshToken,omitempty"` IDToken string `protobuf:"bytes,3,opt,name=IDToken,proto3" json:"IDToken,omitempty"` // contains filtered or unexported fields }
func (*SignupResp) Descriptor
deprecated
func (*SignupResp) Descriptor() ([]byte, []int)
Deprecated: Use SignupResp.ProtoReflect.Descriptor instead.
func (*SignupResp) GetAccessToken ¶
func (x *SignupResp) GetAccessToken() string
func (*SignupResp) GetIDToken ¶
func (x *SignupResp) GetIDToken() string
func (*SignupResp) GetRefreshToken ¶
func (x *SignupResp) GetRefreshToken() string
func (*SignupResp) ProtoMessage ¶
func (*SignupResp) ProtoMessage()
func (*SignupResp) ProtoReflect ¶
func (x *SignupResp) ProtoReflect() protoreflect.Message
func (*SignupResp) Reset ¶
func (x *SignupResp) Reset()
func (*SignupResp) String ¶
func (x *SignupResp) String() string
type UnimplementedIdentityServiceServer ¶
type UnimplementedIdentityServiceServer struct { }
UnimplementedIdentityServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedIdentityServiceServer) Signin ¶
func (UnimplementedIdentityServiceServer) Signin(context.Context, *SigninReq) (*SigninResp, error)
func (UnimplementedIdentityServiceServer) Signup ¶
func (UnimplementedIdentityServiceServer) Signup(context.Context, *SignupReq) (*SignupResp, error)
type UnsafeIdentityServiceServer ¶
type UnsafeIdentityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityServiceServer will result in compilation errors.