Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthServer
- type OAuthChallengeRequest
- func (*OAuthChallengeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthChallengeRequest) GetCode() string
- func (x *OAuthChallengeRequest) GetState() string
- func (*OAuthChallengeRequest) ProtoMessage()
- func (x *OAuthChallengeRequest) ProtoReflect() protoreflect.Message
- func (x *OAuthChallengeRequest) Reset()
- func (x *OAuthChallengeRequest) String() string
- type OAuthInfo
- func (*OAuthInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthInfo) GetRedirect() bool
- func (x *OAuthInfo) GetUrl() string
- func (x *OAuthInfo) GetUsername() string
- func (*OAuthInfo) ProtoMessage()
- func (x *OAuthInfo) ProtoReflect() protoreflect.Message
- func (x *OAuthInfo) Reset()
- func (x *OAuthInfo) String() string
- type Scopes
- type String
- type StringList
- type UnimplementedAuthServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_grpc_services_auth_server_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { Capabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StringList, error) OAuthChallenge(ctx context.Context, in *OAuthChallengeRequest, opts ...grpc.CallOption) (*OAuthInfo, error) GetOAuthURL(ctx context.Context, in *Scopes, opts ...grpc.CallOption) (*String, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { Capabilities(context.Context, *emptypb.Empty) (*StringList, error) OAuthChallenge(context.Context, *OAuthChallengeRequest) (*OAuthInfo, error) GetOAuthURL(context.Context, *Scopes) (*String, error) }
AuthServer is the server API for Auth service.
type OAuthChallengeRequest ¶
type OAuthChallengeRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*OAuthChallengeRequest) Descriptor
deprecated
func (*OAuthChallengeRequest) Descriptor() ([]byte, []int)
Deprecated: Use OAuthChallengeRequest.ProtoReflect.Descriptor instead.
func (*OAuthChallengeRequest) GetCode ¶
func (x *OAuthChallengeRequest) GetCode() string
func (*OAuthChallengeRequest) GetState ¶
func (x *OAuthChallengeRequest) GetState() string
func (*OAuthChallengeRequest) ProtoMessage ¶
func (*OAuthChallengeRequest) ProtoMessage()
func (*OAuthChallengeRequest) ProtoReflect ¶ added in v0.3.0
func (x *OAuthChallengeRequest) ProtoReflect() protoreflect.Message
func (*OAuthChallengeRequest) Reset ¶
func (x *OAuthChallengeRequest) Reset()
func (*OAuthChallengeRequest) String ¶
func (x *OAuthChallengeRequest) String() string
type OAuthInfo ¶
type OAuthInfo struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Redirect bool `protobuf:"varint,3,opt,name=redirect,proto3" json:"redirect,omitempty"` // contains filtered or unexported fields }
func (*OAuthInfo) Descriptor
deprecated
func (*OAuthInfo) GetRedirect ¶
func (*OAuthInfo) GetUsername ¶
func (*OAuthInfo) ProtoMessage ¶
func (*OAuthInfo) ProtoMessage()
func (*OAuthInfo) ProtoReflect ¶ added in v0.3.0
func (x *OAuthInfo) ProtoReflect() protoreflect.Message
type Scopes ¶
type Scopes struct { List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Scopes) Descriptor
deprecated
func (*Scopes) ProtoMessage ¶
func (*Scopes) ProtoMessage()
func (*Scopes) ProtoReflect ¶ added in v0.3.0
func (x *Scopes) ProtoReflect() protoreflect.Message
type String ¶
type String struct { Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"` // contains filtered or unexported fields }
func (*String) Descriptor
deprecated
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) ProtoReflect ¶ added in v0.3.0
func (x *String) ProtoReflect() protoreflect.Message
type StringList ¶
type StringList struct { List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetList ¶
func (x *StringList) GetList() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶ added in v0.3.0
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) Capabilities ¶
func (*UnimplementedAuthServer) Capabilities(context.Context, *emptypb.Empty) (*StringList, error)
func (*UnimplementedAuthServer) GetOAuthURL ¶
func (*UnimplementedAuthServer) OAuthChallenge ¶
func (*UnimplementedAuthServer) OAuthChallenge(context.Context, *OAuthChallengeRequest) (*OAuthInfo, error)
Click to show internal directories.
Click to hide internal directories.