Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { GetToken() (TokenResponse, error) GetUserInfo() (UserInfo, error) }
type AuthService ¶
type AuthService struct { protos.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(auth Auth) *AuthService
func (AuthService) GetToken ¶
func (a AuthService) GetToken(ctx context.Context, empty *emptypb.Empty) (*protos.TokenResponse, error)
func (AuthService) GetUserInfo ¶
type DefaultAuth ¶
type DefaultAuth struct { }
func (DefaultAuth) GetToken ¶
func (d DefaultAuth) GetToken() (TokenResponse, error)
func (DefaultAuth) GetUserInfo ¶
func (d DefaultAuth) GetUserInfo() (UserInfo, error)
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.