proto

package
v0.0.0-...-4c9bff6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_identity_identity_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetModel

func (x *Device) GetModel() string

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetOSVersion

func (x *Device) GetOSVersion() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use SigninReq.ProtoReflect.Descriptor instead.

func (*SigninReq) GetDevice

func (x *SigninReq) GetDevice() *Device

func (*SigninReq) GetIPAddress

func (x *SigninReq) GetIPAddress() string

func (*SigninReq) GetIdpProvider

func (x *SigninReq) GetIdpProvider() string

func (*SigninReq) GetPassword

func (x *SigninReq) GetPassword() string

func (*SigninReq) GetUsername

func (x *SigninReq) GetUsername() string

func (*SigninReq) ProtoMessage

func (*SigninReq) ProtoMessage()

func (*SigninReq) ProtoReflect

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

func (*SigninReq) Reset

func (x *SigninReq) Reset()

func (*SigninReq) String

func (x *SigninReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SignupReq.ProtoReflect.Descriptor instead.

func (*SignupReq) GetDevice

func (x *SignupReq) GetDevice() *Device

func (*SignupReq) GetEmail

func (x *SignupReq) GetEmail() string

func (*SignupReq) GetFirstName

func (x *SignupReq) GetFirstName() string

func (*SignupReq) GetIPAddress

func (x *SignupReq) GetIPAddress() string

func (*SignupReq) GetLastName

func (x *SignupReq) GetLastName() string

func (*SignupReq) GetNickname

func (x *SignupReq) GetNickname() string

func (*SignupReq) GetPassword

func (x *SignupReq) GetPassword() string

func (*SignupReq) GetPlatform

func (x *SignupReq) GetPlatform() string

func (*SignupReq) GetUsername

func (x *SignupReq) GetUsername() string

func (*SignupReq) ProtoMessage

func (*SignupReq) ProtoMessage()

func (*SignupReq) ProtoReflect

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

func (*SignupReq) Reset

func (x *SignupReq) Reset()

func (*SignupReq) String

func (x *SignupReq) String() string

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) Signup

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.

Jump to

Keyboard shortcuts

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