Documentation ¶
Index ¶
- type Authenticator
- type Client
- func (c *Client) CreateUsername(ctx context.Context, id Authenticator, uid string, password string) error
- func (c *Client) DeleteUser(ctx context.Context, id Authenticator, uid string) error
- func (c *Client) GetAuthUser(ctx context.Context, id Authenticator, uid string) (*GetAuthUserResp, error)
- func (c *Client) GetAuthUsers(ctx context.Context, id Authenticator, query *GetAuthUsersReq) (*GetAuthUsersResp, error)
- func (c *Client) SetApiUrl(apiurl string)
- func (c *Client) SetUserPassword(ctx context.Context, id Authenticator, uid string, password string) error
- type ClientOptions
- type CodeResp
- type CreateUserReq
- type CreateUserResp
- type GetAuthUserResp
- type GetAuthUsersReq
- type GetAuthUsersResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator = string
var (
PasswordBased_BuildInDatabase Authenticator = `password_based:built_in_database`
)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(apiurl, appid, appscret string, opts ...ClientOptions) *Client
func (*Client) CreateUsername ¶
func (*Client) DeleteUser ¶
func (*Client) GetAuthUser ¶
func (c *Client) GetAuthUser(ctx context.Context, id Authenticator, uid string) (*GetAuthUserResp, error)
func (*Client) GetAuthUsers ¶
func (c *Client) GetAuthUsers(ctx context.Context, id Authenticator, query *GetAuthUsersReq) (*GetAuthUsersResp, error)
func (*Client) SetUserPassword ¶
type ClientOptions ¶
type ClientOptions func(*Client)
func WithHttpClient ¶
func WithHttpClient(hcli *http.Client) ClientOptions
type CreateUserReq ¶
type CreateUserResp ¶
type CreateUserResp = CodeResp
type GetAuthUserResp ¶
type GetAuthUsersReq ¶
type GetAuthUsersResp ¶
Click to show internal directories.
Click to hide internal directories.