Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type AuthType
- type ExchangeTokenRequest
- func (*ExchangeTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeTokenRequest) GetCode() string
- func (x *ExchangeTokenRequest) GetRedirectUrl() string
- func (x *ExchangeTokenRequest) GetType() AuthType
- func (*ExchangeTokenRequest) ProtoMessage()
- func (x *ExchangeTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeTokenRequest) Reset()
- func (x *ExchangeTokenRequest) String() string
- type ExchangeTokenResponse
- func (*ExchangeTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeTokenResponse) GetToken() *Token
- func (*ExchangeTokenResponse) ProtoMessage()
- func (x *ExchangeTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeTokenResponse) Reset()
- func (x *ExchangeTokenResponse) String() string
- type GetAuthenticationURLRequest
- func (*GetAuthenticationURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthenticationURLRequest) GetRedirectUrl() string
- func (x *GetAuthenticationURLRequest) GetState() string
- func (x *GetAuthenticationURLRequest) GetType() AuthType
- func (*GetAuthenticationURLRequest) ProtoMessage()
- func (x *GetAuthenticationURLRequest) ProtoReflect() protoreflect.Message
- func (x *GetAuthenticationURLRequest) Reset()
- func (x *GetAuthenticationURLRequest) String() string
- type GetAuthenticationURLResponse
- func (*GetAuthenticationURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthenticationURLResponse) GetUrl() string
- func (*GetAuthenticationURLResponse) ProtoMessage()
- func (x *GetAuthenticationURLResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthenticationURLResponse) Reset()
- func (x *GetAuthenticationURLResponse) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetToken() *Token
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetEmail() string
- func (x *SignInRequest) GetPassword() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type SignInResponse
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetAccessToken() string
- func (x *Token) GetExpiry() int64
- func (x *Token) GetRefreshToken() string
- func (x *Token) GetTokenType() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type UnimplementedAuthServiceServer
- func (*UnimplementedAuthServiceServer) ExchangeToken(context.Context, *ExchangeTokenRequest) (*ExchangeTokenResponse, error)
- func (*UnimplementedAuthServiceServer) GetAuthenticationURL(context.Context, *GetAuthenticationURLRequest) (*GetAuthenticationURLResponse, error)
- func (*UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
- func (*UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( AuthType_name = map[int32]string{ 0: "AUTH_TYPE_UNSPECIFIED", 1: "AUTH_TYPE_USER_PASSWORD", 2: "AUTH_TYPE_GOOGLE", 3: "AUTH_TYPE_GITHUB", } AuthType_value = map[string]int32{ "AUTH_TYPE_UNSPECIFIED": 0, "AUTH_TYPE_USER_PASSWORD": 1, "AUTH_TYPE_GOOGLE": 2, "AUTH_TYPE_GITHUB": 3, } )
Enum value maps for AuthType.
var File_proto_auth_service_proto protoreflect.FileDescriptor
var File_proto_auth_token_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { ExchangeToken(ctx context.Context, in *ExchangeTokenRequest, opts ...grpc.CallOption) (*ExchangeTokenResponse, error) GetAuthenticationURL(ctx context.Context, in *GetAuthenticationURLRequest, opts ...grpc.CallOption) (*GetAuthenticationURLResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { ExchangeToken(context.Context, *ExchangeTokenRequest) (*ExchangeTokenResponse, error) GetAuthenticationURL(context.Context, *GetAuthenticationURLRequest) (*GetAuthenticationURLResponse, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) SignIn(context.Context, *SignInRequest) (*SignInResponse, error) }
AuthServiceServer is the server API for AuthService service.
type AuthType ¶ added in v0.4.6
type AuthType int32
func (AuthType) Descriptor ¶ added in v0.4.6
func (AuthType) Descriptor() protoreflect.EnumDescriptor
func (AuthType) EnumDescriptor
deprecated
added in
v0.4.6
func (AuthType) Number ¶ added in v0.4.6
func (x AuthType) Number() protoreflect.EnumNumber
func (AuthType) Type ¶ added in v0.4.6
func (AuthType) Type() protoreflect.EnumType
type ExchangeTokenRequest ¶
type ExchangeTokenRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"` RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url"` Type AuthType `protobuf:"varint,3,opt,name=type,proto3,enum=bucketeer.auth.AuthType" json:"type"` // contains filtered or unexported fields }
func (*ExchangeTokenRequest) Descriptor
deprecated
func (*ExchangeTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeTokenRequest.ProtoReflect.Descriptor instead.
func (*ExchangeTokenRequest) GetCode ¶
func (x *ExchangeTokenRequest) GetCode() string
func (*ExchangeTokenRequest) GetRedirectUrl ¶
func (x *ExchangeTokenRequest) GetRedirectUrl() string
func (*ExchangeTokenRequest) GetType ¶ added in v0.4.6
func (x *ExchangeTokenRequest) GetType() AuthType
func (*ExchangeTokenRequest) ProtoMessage ¶
func (*ExchangeTokenRequest) ProtoMessage()
func (*ExchangeTokenRequest) ProtoReflect ¶
func (x *ExchangeTokenRequest) ProtoReflect() protoreflect.Message
func (*ExchangeTokenRequest) Reset ¶
func (x *ExchangeTokenRequest) Reset()
func (*ExchangeTokenRequest) String ¶
func (x *ExchangeTokenRequest) String() string
type ExchangeTokenResponse ¶
type ExchangeTokenResponse struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` // contains filtered or unexported fields }
func (*ExchangeTokenResponse) Descriptor
deprecated
func (*ExchangeTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeTokenResponse.ProtoReflect.Descriptor instead.
func (*ExchangeTokenResponse) GetToken ¶
func (x *ExchangeTokenResponse) GetToken() *Token
func (*ExchangeTokenResponse) ProtoMessage ¶
func (*ExchangeTokenResponse) ProtoMessage()
func (*ExchangeTokenResponse) ProtoReflect ¶
func (x *ExchangeTokenResponse) ProtoReflect() protoreflect.Message
func (*ExchangeTokenResponse) Reset ¶
func (x *ExchangeTokenResponse) Reset()
func (*ExchangeTokenResponse) String ¶
func (x *ExchangeTokenResponse) String() string
type GetAuthenticationURLRequest ¶ added in v0.4.6
type GetAuthenticationURLRequest struct { State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state"` RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url"` Type AuthType `protobuf:"varint,3,opt,name=type,proto3,enum=bucketeer.auth.AuthType" json:"type"` // contains filtered or unexported fields }
func (*GetAuthenticationURLRequest) Descriptor
deprecated
added in
v0.4.6
func (*GetAuthenticationURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthenticationURLRequest.ProtoReflect.Descriptor instead.
func (*GetAuthenticationURLRequest) GetRedirectUrl ¶ added in v0.4.6
func (x *GetAuthenticationURLRequest) GetRedirectUrl() string
func (*GetAuthenticationURLRequest) GetState ¶ added in v0.4.6
func (x *GetAuthenticationURLRequest) GetState() string
func (*GetAuthenticationURLRequest) GetType ¶ added in v0.4.6
func (x *GetAuthenticationURLRequest) GetType() AuthType
func (*GetAuthenticationURLRequest) ProtoMessage ¶ added in v0.4.6
func (*GetAuthenticationURLRequest) ProtoMessage()
func (*GetAuthenticationURLRequest) ProtoReflect ¶ added in v0.4.6
func (x *GetAuthenticationURLRequest) ProtoReflect() protoreflect.Message
func (*GetAuthenticationURLRequest) Reset ¶ added in v0.4.6
func (x *GetAuthenticationURLRequest) Reset()
func (*GetAuthenticationURLRequest) String ¶ added in v0.4.6
func (x *GetAuthenticationURLRequest) String() string
type GetAuthenticationURLResponse ¶ added in v0.4.6
type GetAuthenticationURLResponse struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url"` // contains filtered or unexported fields }
func (*GetAuthenticationURLResponse) Descriptor
deprecated
added in
v0.4.6
func (*GetAuthenticationURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthenticationURLResponse.ProtoReflect.Descriptor instead.
func (*GetAuthenticationURLResponse) GetUrl ¶ added in v0.4.6
func (x *GetAuthenticationURLResponse) GetUrl() string
func (*GetAuthenticationURLResponse) ProtoMessage ¶ added in v0.4.6
func (*GetAuthenticationURLResponse) ProtoMessage()
func (*GetAuthenticationURLResponse) ProtoReflect ¶ added in v0.4.6
func (x *GetAuthenticationURLResponse) ProtoReflect() protoreflect.Message
func (*GetAuthenticationURLResponse) Reset ¶ added in v0.4.6
func (x *GetAuthenticationURLResponse) Reset()
func (*GetAuthenticationURLResponse) String ¶ added in v0.4.6
func (x *GetAuthenticationURLResponse) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetToken ¶
func (x *RefreshTokenResponse) GetToken() *Token
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type SignInRequest ¶ added in v0.4.6
type SignInRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
added in
v0.4.6
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetEmail ¶ added in v0.4.6
func (x *SignInRequest) GetEmail() string
func (*SignInRequest) GetPassword ¶ added in v0.4.6
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) ProtoMessage ¶ added in v0.4.6
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶ added in v0.4.6
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶ added in v0.4.6
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶ added in v0.4.6
func (x *SignInRequest) String() string
type SignInResponse ¶ added in v0.4.6
type SignInResponse struct { Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
added in
v0.4.6
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetToken ¶ added in v0.4.6
func (x *SignInResponse) GetToken() *Token
func (*SignInResponse) ProtoMessage ¶ added in v0.4.6
func (*SignInResponse) ProtoMessage()
func (*SignInResponse) ProtoReflect ¶ added in v0.4.6
func (x *SignInResponse) ProtoReflect() protoreflect.Message
func (*SignInResponse) Reset ¶ added in v0.4.6
func (x *SignInResponse) Reset()
func (*SignInResponse) String ¶ added in v0.4.6
func (x *SignInResponse) String() string
type Token ¶
type Token struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token"` TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token"` Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) GetAccessToken ¶
func (*Token) GetRefreshToken ¶
func (*Token) GetTokenType ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) ExchangeToken ¶
func (*UnimplementedAuthServiceServer) ExchangeToken(context.Context, *ExchangeTokenRequest) (*ExchangeTokenResponse, error)
func (*UnimplementedAuthServiceServer) GetAuthenticationURL ¶ added in v0.4.6
func (*UnimplementedAuthServiceServer) GetAuthenticationURL(context.Context, *GetAuthenticationURLRequest) (*GetAuthenticationURLResponse, error)
func (*UnimplementedAuthServiceServer) RefreshToken ¶
func (*UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
func (*UnimplementedAuthServiceServer) SignIn ¶ added in v0.4.6
func (*UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)