Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AccessTokenOut
- func (*AccessTokenOut) Descriptor() ([]byte, []int)deprecated
- func (x *AccessTokenOut) GetEmail() string
- func (x *AccessTokenOut) GetId() string
- func (x *AccessTokenOut) GetOauthToken() *OauthToken
- func (x *AccessTokenOut) GetProvider() string
- func (x *AccessTokenOut) GetUserId() string
- func (*AccessTokenOut) ProtoMessage()
- func (x *AccessTokenOut) ProtoReflect() protoreflect.Message
- func (x *AccessTokenOut) Reset()
- func (x *AccessTokenOut) String() string
- type AuthClient
- type AuthServer
- type GetAccessTokenRequest
- func (*GetAccessTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccessTokenRequest) GetProvider() string
- func (x *GetAccessTokenRequest) GetTokenId() string
- func (x *GetAccessTokenRequest) GetUserId() string
- func (*GetAccessTokenRequest) ProtoMessage()
- func (x *GetAccessTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccessTokenRequest) Reset()
- func (x *GetAccessTokenRequest) String() string
- type GetUserByEmailOut
- type GetUserByEmailRequest
- func (*GetUserByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByEmailRequest) GetEmail() string
- func (*GetUserByEmailRequest) ProtoMessage()
- func (x *GetUserByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserByEmailRequest) Reset()
- func (x *GetUserByEmailRequest) String() string
- type GetUserIn
- type GetUserOut
- func (*GetUserOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserOut) GetEmail() string
- func (x *GetUserOut) GetId() string
- func (x *GetUserOut) GetName() string
- func (*GetUserOut) ProtoMessage()
- func (x *GetUserOut) ProtoReflect() protoreflect.Message
- func (x *GetUserOut) Reset()
- func (x *GetUserOut) String() string
- type OauthToken
- func (*OauthToken) Descriptor() ([]byte, []int)deprecated
- func (x *OauthToken) GetAccessToken() string
- func (x *OauthToken) GetExpiry() int64
- func (x *OauthToken) GetRaw() string
- func (x *OauthToken) GetRefreshToken() string
- func (x *OauthToken) GetTokenType() string
- func (*OauthToken) ProtoMessage()
- func (x *OauthToken) ProtoReflect() protoreflect.Message
- func (x *OauthToken) Reset()
- func (x *OauthToken) String() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) EnsureUserByEmail(context.Context, *GetUserByEmailRequest) (*GetUserByEmailOut, error)
- func (UnimplementedAuthServer) GetAccessToken(context.Context, *GetAccessTokenRequest) (*AccessTokenOut, error)
- func (UnimplementedAuthServer) GetUser(context.Context, *GetUserIn) (*GetUserOut, error)
- type UnsafeAuthServer
Constants ¶
const ( Auth_GetAccessToken_FullMethodName = "/Auth/GetAccessToken" Auth_EnsureUserByEmail_FullMethodName = "/Auth/EnsureUserByEmail" Auth_GetUser_FullMethodName = "/Auth/GetUser" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAccessToken", Handler: _Auth_GetAccessToken_Handler, }, { MethodName: "EnsureUserByEmail", Handler: _Auth_EnsureUserByEmail_Handler, }, { MethodName: "GetUser", Handler: _Auth_GetUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AccessTokenOut ¶
type AccessTokenOut struct { Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` OauthToken *OauthToken `protobuf:"bytes,4,opt,name=oauthToken,proto3" json:"oauthToken,omitempty"` // contains filtered or unexported fields }
func (*AccessTokenOut) Descriptor
deprecated
func (*AccessTokenOut) Descriptor() ([]byte, []int)
Deprecated: Use AccessTokenOut.ProtoReflect.Descriptor instead.
func (*AccessTokenOut) GetEmail ¶
func (x *AccessTokenOut) GetEmail() string
func (*AccessTokenOut) GetId ¶
func (x *AccessTokenOut) GetId() string
func (*AccessTokenOut) GetOauthToken ¶
func (x *AccessTokenOut) GetOauthToken() *OauthToken
func (*AccessTokenOut) GetProvider ¶
func (x *AccessTokenOut) GetProvider() string
func (*AccessTokenOut) GetUserId ¶
func (x *AccessTokenOut) GetUserId() string
func (*AccessTokenOut) ProtoMessage ¶
func (*AccessTokenOut) ProtoMessage()
func (*AccessTokenOut) ProtoReflect ¶
func (x *AccessTokenOut) ProtoReflect() protoreflect.Message
func (*AccessTokenOut) Reset ¶
func (x *AccessTokenOut) Reset()
func (*AccessTokenOut) String ¶
func (x *AccessTokenOut) String() string
type AuthClient ¶
type AuthClient interface { GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*AccessTokenOut, error) EnsureUserByEmail(ctx context.Context, in *GetUserByEmailRequest, opts ...grpc.CallOption) (*GetUserByEmailOut, error) GetUser(ctx context.Context, in *GetUserIn, opts ...grpc.CallOption) (*GetUserOut, 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 { GetAccessToken(context.Context, *GetAccessTokenRequest) (*AccessTokenOut, error) EnsureUserByEmail(context.Context, *GetUserByEmailRequest) (*GetUserByEmailOut, error) GetUser(context.Context, *GetUserIn) (*GetUserOut, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type GetAccessTokenRequest ¶
type GetAccessTokenRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` TokenId string `protobuf:"bytes,3,opt,name=tokenId,proto3" json:"tokenId,omitempty"` // contains filtered or unexported fields }
func (*GetAccessTokenRequest) Descriptor
deprecated
func (*GetAccessTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccessTokenRequest.ProtoReflect.Descriptor instead.
func (*GetAccessTokenRequest) GetProvider ¶
func (x *GetAccessTokenRequest) GetProvider() string
func (*GetAccessTokenRequest) GetTokenId ¶
func (x *GetAccessTokenRequest) GetTokenId() string
func (*GetAccessTokenRequest) GetUserId ¶
func (x *GetAccessTokenRequest) GetUserId() string
func (*GetAccessTokenRequest) ProtoMessage ¶
func (*GetAccessTokenRequest) ProtoMessage()
func (*GetAccessTokenRequest) ProtoReflect ¶
func (x *GetAccessTokenRequest) ProtoReflect() protoreflect.Message
func (*GetAccessTokenRequest) Reset ¶
func (x *GetAccessTokenRequest) Reset()
func (*GetAccessTokenRequest) String ¶
func (x *GetAccessTokenRequest) String() string
type GetUserByEmailOut ¶
type GetUserByEmailOut struct { UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"` // contains filtered or unexported fields }
func (*GetUserByEmailOut) Descriptor
deprecated
func (*GetUserByEmailOut) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByEmailOut.ProtoReflect.Descriptor instead.
func (*GetUserByEmailOut) GetUserId ¶
func (x *GetUserByEmailOut) GetUserId() string
func (*GetUserByEmailOut) ProtoMessage ¶
func (*GetUserByEmailOut) ProtoMessage()
func (*GetUserByEmailOut) ProtoReflect ¶
func (x *GetUserByEmailOut) ProtoReflect() protoreflect.Message
func (*GetUserByEmailOut) Reset ¶
func (x *GetUserByEmailOut) Reset()
func (*GetUserByEmailOut) String ¶
func (x *GetUserByEmailOut) String() string
type GetUserByEmailRequest ¶
type GetUserByEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserByEmailRequest) Descriptor
deprecated
func (*GetUserByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByEmailRequest.ProtoReflect.Descriptor instead.
func (*GetUserByEmailRequest) GetEmail ¶
func (x *GetUserByEmailRequest) GetEmail() string
func (*GetUserByEmailRequest) ProtoMessage ¶
func (*GetUserByEmailRequest) ProtoMessage()
func (*GetUserByEmailRequest) ProtoReflect ¶
func (x *GetUserByEmailRequest) ProtoReflect() protoreflect.Message
func (*GetUserByEmailRequest) Reset ¶
func (x *GetUserByEmailRequest) Reset()
func (*GetUserByEmailRequest) String ¶
func (x *GetUserByEmailRequest) String() string
type GetUserIn ¶
type GetUserIn struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetUserIn) Descriptor
deprecated
func (*GetUserIn) ProtoMessage ¶
func (*GetUserIn) ProtoMessage()
func (*GetUserIn) ProtoReflect ¶
func (x *GetUserIn) ProtoReflect() protoreflect.Message
type GetUserOut ¶
type GetUserOut struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetUserOut) Descriptor
deprecated
func (*GetUserOut) Descriptor() ([]byte, []int)
Deprecated: Use GetUserOut.ProtoReflect.Descriptor instead.
func (*GetUserOut) GetEmail ¶
func (x *GetUserOut) GetEmail() string
func (*GetUserOut) GetId ¶
func (x *GetUserOut) GetId() string
func (*GetUserOut) GetName ¶
func (x *GetUserOut) GetName() string
func (*GetUserOut) ProtoMessage ¶
func (*GetUserOut) ProtoMessage()
func (*GetUserOut) ProtoReflect ¶
func (x *GetUserOut) ProtoReflect() protoreflect.Message
func (*GetUserOut) Reset ¶
func (x *GetUserOut) Reset()
func (*GetUserOut) String ¶
func (x *GetUserOut) String() string
type OauthToken ¶
type OauthToken struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"` // contains filtered or unexported fields }
func (*OauthToken) Descriptor
deprecated
func (*OauthToken) Descriptor() ([]byte, []int)
Deprecated: Use OauthToken.ProtoReflect.Descriptor instead.
func (*OauthToken) GetAccessToken ¶
func (x *OauthToken) GetAccessToken() string
func (*OauthToken) GetExpiry ¶
func (x *OauthToken) GetExpiry() int64
func (*OauthToken) GetRaw ¶
func (x *OauthToken) GetRaw() string
func (*OauthToken) GetRefreshToken ¶
func (x *OauthToken) GetRefreshToken() string
func (*OauthToken) GetTokenType ¶
func (x *OauthToken) GetTokenType() string
func (*OauthToken) ProtoMessage ¶
func (*OauthToken) ProtoMessage()
func (*OauthToken) ProtoReflect ¶
func (x *OauthToken) ProtoReflect() protoreflect.Message
func (*OauthToken) Reset ¶
func (x *OauthToken) Reset()
func (*OauthToken) String ¶
func (x *OauthToken) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) EnsureUserByEmail ¶
func (UnimplementedAuthServer) EnsureUserByEmail(context.Context, *GetUserByEmailRequest) (*GetUserByEmailOut, error)
func (UnimplementedAuthServer) GetAccessToken ¶
func (UnimplementedAuthServer) GetAccessToken(context.Context, *GetAccessTokenRequest) (*AccessTokenOut, error)
func (UnimplementedAuthServer) GetUser ¶
func (UnimplementedAuthServer) GetUser(context.Context, *GetUserIn) (*GetUserOut, 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.