Documentation
¶
Overview ¶
Package mysqldb ...
Index ¶
- type MySQLOauthDB
- func (d *MySQLOauthDB) AddAccessToken(tx dbtx.Transaction, t *odb.AccessToken) (bool, int64)
- func (d *MySQLOauthDB) AddAuthCodeRevolk(tx dbtx.Transaction, rv *odb.AuthCodeRevolk) (bool, int64)
- func (d *MySQLOauthDB) AddAuthCodeScope(tx dbtx.Transaction, as *odb.AuthCodeScope) (bool, int64)
- func (d *MySQLOauthDB) AddAuthorizationCode(code *odb.AuthorizationCode, at *odb.AccessToken, rt *odb.RefreshToken, ...) (bool, int64)
- func (d *MySQLOauthDB) AddClient(client *odb.Client, uris *[]odb.ClientRedirectURI) (bool, int64)
- func (d *MySQLOauthDB) AddClientAllowedURI(au *odb.ClientAllowedURI) (bool, int64)
- func (d *MySQLOauthDB) AddClientGrantType(gt *odb.ClientGrantType) (bool, int64)
- func (d *MySQLOauthDB) AddClientRedirectURI(tx dbtx.Transaction, ru *odb.ClientRedirectURI) (bool, int64)
- func (d *MySQLOauthDB) AddClientRole(r *odb.ClientRole) (bool, int64)
- func (d *MySQLOauthDB) AddClientRoleURI(r *odb.ClientRoleURI) bool
- func (d *MySQLOauthDB) AddClientScope(s *odb.ClientScope) (bool, int64)
- func (d *MySQLOauthDB) AddCredentialsGrant(cg *odb.CredentialsGrant, at *odb.AccessToken) (bool, int64)
- func (d *MySQLOauthDB) AddImplicitGrant(ig *odb.ImplicitGrant, at *odb.AccessToken, scopeList *[]string) (bool, int64)
- func (d *MySQLOauthDB) AddImplicitGrantScope(tx dbtx.Transaction, igs *odb.ImplicitScope) (bool, int64)
- func (d *MySQLOauthDB) AddPasswordGrant(pwg *odb.PasswordGrant, at *odb.AccessToken, rt *odb.RefreshToken) (bool, int64)
- func (d *MySQLOauthDB) AddRefreshToken(tx dbtx.Transaction, t *odb.RefreshToken) (bool, int64)
- func (d *MySQLOauthDB) DeleteAccessToken(tx dbtx.Transaction, id int64) bool
- func (d *MySQLOauthDB) DeleteAuthCodeRevolk(tx dbtx.Transaction, ac int64) bool
- func (d *MySQLOauthDB) DeleteAuthCodeScopeList(tx dbtx.Transaction, ac int64) bool
- func (d *MySQLOauthDB) DeleteAuthorizationCode(clientID int64, userID string) bool
- func (d *MySQLOauthDB) DeleteClient(clientID int64) bool
- func (d *MySQLOauthDB) DeleteClientAllRedirectURI(tx dbtx.Transaction, clientID int64) bool
- func (d *MySQLOauthDB) DeleteClientAllowedURI(id int64) bool
- func (d *MySQLOauthDB) DeleteClientGrantType(id int64) bool
- func (d *MySQLOauthDB) DeleteClientRedirectURI(tx dbtx.Transaction, id int64) bool
- func (d *MySQLOauthDB) DeleteClientRole(id int64) bool
- func (d *MySQLOauthDB) DeleteClientRoleURI(r *odb.ClientRoleURI) bool
- func (d *MySQLOauthDB) DeleteClientScope(id int64) bool
- func (d *MySQLOauthDB) DeleteCredentialsGrant(clientID int64) bool
- func (d *MySQLOauthDB) DeleteImplicitGrant(clientID int64, userID string) bool
- func (d *MySQLOauthDB) DeleteImplicitGrantScopeList(tx dbtx.Transaction, ig int64) bool
- func (d *MySQLOauthDB) DeletePasswordGrant(clientID int64, userID string) bool
- func (d *MySQLOauthDB) DeleteRefreshToken(tx dbtx.Transaction, id int64) bool
- func (d *MySQLOauthDB) GetAccessToken(id int64) *odb.AccessToken
- func (d *MySQLOauthDB) GetAccessTokenKey() string
- func (d *MySQLOauthDB) GetAuthCodeRevolk(ac int64) *odb.AuthCodeRevolk
- func (d *MySQLOauthDB) GetAuthorizationCode(clientID int64, userID string) *[]odb.AuthorizationCode
- func (d *MySQLOauthDB) GetAuthorizationCodeByCode(code string) *odb.AuthorizationCode
- func (d *MySQLOauthDB) GetAuthorizationCodeByScope(clientID int64, userID string, scope string) *[]odb.AuthorizationCode
- func (d *MySQLOauthDB) GetAuthorizationCodeScopeList(ac int64) *[]odb.AuthCodeScope
- func (d *MySQLOauthDB) GetClient(clientID int64) *odb.Client
- func (d *MySQLOauthDB) GetClientAllowedURI(clientID int64, uri string) *odb.ClientAllowedURI
- func (d *MySQLOauthDB) GetClientAllowedURIByID(id int64) *odb.ClientAllowedURI
- func (d *MySQLOauthDB) GetClientAllowedURIList(clientID int64) *[]odb.ClientAllowedURI
- func (d *MySQLOauthDB) GetClientGrantTypeList(clientID int64) *[]odb.ClientGrantType
- func (d *MySQLOauthDB) GetClientRedirectURI(clientID int64, uri string) *odb.ClientRedirectURI
- func (d *MySQLOauthDB) GetClientRedirectURIList(clientID int64) *[]odb.ClientRedirectURI
- func (d *MySQLOauthDB) GetClientRoleAllowedURIList(roleID int64) *[]odb.ClientRoleURI
- func (d *MySQLOauthDB) GetClientRoleAllowedURIListByClientID(clientID int64) *[]odb.RoleURI
- func (d *MySQLOauthDB) GetClientRoleList(clientID int64) *[]odb.ClientRole
- func (d *MySQLOauthDB) GetClientScopeList(clientID int64) *[]odb.ClientScope
- func (d *MySQLOauthDB) GetClients() *[]odb.Client
- func (d *MySQLOauthDB) GetCredentialsGrant(clientID int64) *[]odb.CredentialsGrant
- func (d *MySQLOauthDB) GetImplicitGrant(clientID int64, userID string) *[]odb.ImplicitGrant
- func (d *MySQLOauthDB) GetImplicitGrantByScope(clientID int64, userID string, scope string) *[]odb.ImplicitGrant
- func (d *MySQLOauthDB) GetImplicitGrantScopeList(ig int64) *[]odb.ImplicitScope
- func (d *MySQLOauthDB) GetPasswordGrant(clientID int64, userID string) *[]odb.PasswordGrant
- func (d *MySQLOauthDB) GetRefreshToken(id int64) *odb.RefreshToken
- func (d *MySQLOauthDB) GetRefreshTokenKey() string
- func (d *MySQLOauthDB) GetSessionKey() string
- func (d *MySQLOauthDB) SearchClients(name string) *[]odb.Client
- func (d *MySQLOauthDB) UpdateAccessToken(tx dbtx.Transaction, t *odb.AccessToken) bool
- func (d *MySQLOauthDB) UpdateAuthorizationCode(code *odb.AuthorizationCode) bool
- func (d *MySQLOauthDB) UpdateAuthorizationCodeAndToken(code *odb.AuthorizationCode, at *odb.AccessToken) bool
- func (d *MySQLOauthDB) UpdateClient(client *odb.Client) bool
- func (d *MySQLOauthDB) UpdateClientAllowedURI(au *odb.ClientAllowedURI) bool
- func (d *MySQLOauthDB) UpdateRefreshToken(t *odb.RefreshToken) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLOauthDB ¶
MySQLOauthDB MySQLOauthDB
func (*MySQLOauthDB) AddAccessToken ¶
func (d *MySQLOauthDB) AddAccessToken(tx dbtx.Transaction, t *odb.AccessToken) (bool, int64)
AddAccessToken AddAccessToken
func (*MySQLOauthDB) AddAuthCodeRevolk ¶
func (d *MySQLOauthDB) AddAuthCodeRevolk(tx dbtx.Transaction, rv *odb.AuthCodeRevolk) (bool, int64)
AddAuthCodeRevolk AddAuthCodeRevolk
func (*MySQLOauthDB) AddAuthCodeScope ¶
func (d *MySQLOauthDB) AddAuthCodeScope(tx dbtx.Transaction, as *odb.AuthCodeScope) (bool, int64)
AddAuthCodeScope AddAuthCodeScope
func (*MySQLOauthDB) AddAuthorizationCode ¶
func (d *MySQLOauthDB) AddAuthorizationCode(code *odb.AuthorizationCode, at *odb.AccessToken, rt *odb.RefreshToken, scopeList *[]string) (bool, int64)
AddAuthorizationCode AddAuthorizationCode
func (*MySQLOauthDB) AddClient ¶
func (d *MySQLOauthDB) AddClient(client *odb.Client, uris *[]odb.ClientRedirectURI) (bool, int64)
AddClient AddClient
func (*MySQLOauthDB) AddClientAllowedURI ¶
func (d *MySQLOauthDB) AddClientAllowedURI(au *odb.ClientAllowedURI) (bool, int64)
AddClientAllowedURI AddClientAllowedURI
func (*MySQLOauthDB) AddClientGrantType ¶
func (d *MySQLOauthDB) AddClientGrantType(gt *odb.ClientGrantType) (bool, int64)
AddClientGrantType AddClientGrantType
func (*MySQLOauthDB) AddClientRedirectURI ¶
func (d *MySQLOauthDB) AddClientRedirectURI(tx dbtx.Transaction, ru *odb.ClientRedirectURI) (bool, int64)
AddClientRedirectURI AddClientRedirectURI
func (*MySQLOauthDB) AddClientRole ¶
func (d *MySQLOauthDB) AddClientRole(r *odb.ClientRole) (bool, int64)
AddClientRole AddClientRole
func (*MySQLOauthDB) AddClientRoleURI ¶
func (d *MySQLOauthDB) AddClientRoleURI(r *odb.ClientRoleURI) bool
AddClientRoleURI AddClientRoleURI
func (*MySQLOauthDB) AddClientScope ¶
func (d *MySQLOauthDB) AddClientScope(s *odb.ClientScope) (bool, int64)
AddClientScope AddClientScope
func (*MySQLOauthDB) AddCredentialsGrant ¶
func (d *MySQLOauthDB) AddCredentialsGrant(cg *odb.CredentialsGrant, at *odb.AccessToken) (bool, int64)
AddCredentialsGrant AddCredentialsGrant
func (*MySQLOauthDB) AddImplicitGrant ¶
func (d *MySQLOauthDB) AddImplicitGrant(ig *odb.ImplicitGrant, at *odb.AccessToken, scopeList *[]string) (bool, int64)
AddImplicitGrant AddImplicitGrant
func (*MySQLOauthDB) AddImplicitGrantScope ¶
func (d *MySQLOauthDB) AddImplicitGrantScope(tx dbtx.Transaction, igs *odb.ImplicitScope) (bool, int64)
AddImplicitGrantScope AddImplicitGrantScope
func (*MySQLOauthDB) AddPasswordGrant ¶
func (d *MySQLOauthDB) AddPasswordGrant(pwg *odb.PasswordGrant, at *odb.AccessToken, rt *odb.RefreshToken) (bool, int64)
AddPasswordGrant AddPasswordGrant
func (*MySQLOauthDB) AddRefreshToken ¶
func (d *MySQLOauthDB) AddRefreshToken(tx dbtx.Transaction, t *odb.RefreshToken) (bool, int64)
AddRefreshToken AddRefreshToken
func (*MySQLOauthDB) DeleteAccessToken ¶
func (d *MySQLOauthDB) DeleteAccessToken(tx dbtx.Transaction, id int64) bool
DeleteAccessToken DeleteAccessToken
func (*MySQLOauthDB) DeleteAuthCodeRevolk ¶
func (d *MySQLOauthDB) DeleteAuthCodeRevolk(tx dbtx.Transaction, ac int64) bool
DeleteAuthCodeRevolk DeleteAuthCodeRevolk
func (*MySQLOauthDB) DeleteAuthCodeScopeList ¶
func (d *MySQLOauthDB) DeleteAuthCodeScopeList(tx dbtx.Transaction, ac int64) bool
DeleteAuthCodeScopeList DeleteAuthCodeScopeList
func (*MySQLOauthDB) DeleteAuthorizationCode ¶
func (d *MySQLOauthDB) DeleteAuthorizationCode(clientID int64, userID string) bool
DeleteAuthorizationCode DeleteAuthorizationCode
func (*MySQLOauthDB) DeleteClient ¶
func (d *MySQLOauthDB) DeleteClient(clientID int64) bool
DeleteClient DeleteClient
func (*MySQLOauthDB) DeleteClientAllRedirectURI ¶
func (d *MySQLOauthDB) DeleteClientAllRedirectURI(tx dbtx.Transaction, clientID int64) bool
DeleteClientAllRedirectURI DeleteClientAllRedirectURI
func (*MySQLOauthDB) DeleteClientAllowedURI ¶
func (d *MySQLOauthDB) DeleteClientAllowedURI(id int64) bool
DeleteClientAllowedURI DeleteClientAllowedURI
func (*MySQLOauthDB) DeleteClientGrantType ¶
func (d *MySQLOauthDB) DeleteClientGrantType(id int64) bool
DeleteClientGrantType DeleteClientGrantType
func (*MySQLOauthDB) DeleteClientRedirectURI ¶
func (d *MySQLOauthDB) DeleteClientRedirectURI(tx dbtx.Transaction, id int64) bool
DeleteClientRedirectURI DeleteClientRedirectURI
func (*MySQLOauthDB) DeleteClientRole ¶
func (d *MySQLOauthDB) DeleteClientRole(id int64) bool
DeleteClientRole DeleteClientRole
func (*MySQLOauthDB) DeleteClientRoleURI ¶
func (d *MySQLOauthDB) DeleteClientRoleURI(r *odb.ClientRoleURI) bool
DeleteClientRoleURI DeleteClientRoleURI
func (*MySQLOauthDB) DeleteClientScope ¶
func (d *MySQLOauthDB) DeleteClientScope(id int64) bool
DeleteClientScope DeleteClientScope
func (*MySQLOauthDB) DeleteCredentialsGrant ¶
func (d *MySQLOauthDB) DeleteCredentialsGrant(clientID int64) bool
DeleteCredentialsGrant DeleteCredentialsGrant
func (*MySQLOauthDB) DeleteImplicitGrant ¶
func (d *MySQLOauthDB) DeleteImplicitGrant(clientID int64, userID string) bool
DeleteImplicitGrant DeleteImplicitGrant
func (*MySQLOauthDB) DeleteImplicitGrantScopeList ¶
func (d *MySQLOauthDB) DeleteImplicitGrantScopeList(tx dbtx.Transaction, ig int64) bool
DeleteImplicitGrantScopeList DeleteImplicitGrantScopeList
func (*MySQLOauthDB) DeletePasswordGrant ¶
func (d *MySQLOauthDB) DeletePasswordGrant(clientID int64, userID string) bool
DeletePasswordGrant DeletePasswordGrant
func (*MySQLOauthDB) DeleteRefreshToken ¶
func (d *MySQLOauthDB) DeleteRefreshToken(tx dbtx.Transaction, id int64) bool
DeleteRefreshToken DeleteRefreshToken
func (*MySQLOauthDB) GetAccessToken ¶
func (d *MySQLOauthDB) GetAccessToken(id int64) *odb.AccessToken
GetAccessToken GetAccessToken
func (*MySQLOauthDB) GetAccessTokenKey ¶
func (d *MySQLOauthDB) GetAccessTokenKey() string
GetAccessTokenKey GetAccessTokenKey
func (*MySQLOauthDB) GetAuthCodeRevolk ¶
func (d *MySQLOauthDB) GetAuthCodeRevolk(ac int64) *odb.AuthCodeRevolk
GetAuthCodeRevolk GetAuthCodeRevolk
func (*MySQLOauthDB) GetAuthorizationCode ¶
func (d *MySQLOauthDB) GetAuthorizationCode(clientID int64, userID string) *[]odb.AuthorizationCode
GetAuthorizationCode GetAuthorizationCode
func (*MySQLOauthDB) GetAuthorizationCodeByCode ¶
func (d *MySQLOauthDB) GetAuthorizationCodeByCode(code string) *odb.AuthorizationCode
GetAuthorizationCodeByCode GetAuthorizationCodeByCode
func (*MySQLOauthDB) GetAuthorizationCodeByScope ¶
func (d *MySQLOauthDB) GetAuthorizationCodeByScope(clientID int64, userID string, scope string) *[]odb.AuthorizationCode
GetAuthorizationCodeByScope GetAuthorizationCodeByScope
func (*MySQLOauthDB) GetAuthorizationCodeScopeList ¶
func (d *MySQLOauthDB) GetAuthorizationCodeScopeList(ac int64) *[]odb.AuthCodeScope
GetAuthorizationCodeScopeList GetAuthorizationCodeScopeList
func (*MySQLOauthDB) GetClient ¶
func (d *MySQLOauthDB) GetClient(clientID int64) *odb.Client
GetClient GetClient
func (*MySQLOauthDB) GetClientAllowedURI ¶
func (d *MySQLOauthDB) GetClientAllowedURI(clientID int64, uri string) *odb.ClientAllowedURI
GetClientAllowedURI GetClientAllowedURI
func (*MySQLOauthDB) GetClientAllowedURIByID ¶
func (d *MySQLOauthDB) GetClientAllowedURIByID(id int64) *odb.ClientAllowedURI
GetClientAllowedURIByID GetClientAllowedURIByID
func (*MySQLOauthDB) GetClientAllowedURIList ¶
func (d *MySQLOauthDB) GetClientAllowedURIList(clientID int64) *[]odb.ClientAllowedURI
GetClientAllowedURIList GetClientAllowedURIList
func (*MySQLOauthDB) GetClientGrantTypeList ¶
func (d *MySQLOauthDB) GetClientGrantTypeList(clientID int64) *[]odb.ClientGrantType
GetClientGrantTypeList GetClientGrantTypeList
func (*MySQLOauthDB) GetClientRedirectURI ¶
func (d *MySQLOauthDB) GetClientRedirectURI(clientID int64, uri string) *odb.ClientRedirectURI
GetClientRedirectURI GetClientRedirectURI
func (*MySQLOauthDB) GetClientRedirectURIList ¶
func (d *MySQLOauthDB) GetClientRedirectURIList(clientID int64) *[]odb.ClientRedirectURI
GetClientRedirectURIList GetClientRedirectURIList
func (*MySQLOauthDB) GetClientRoleAllowedURIList ¶
func (d *MySQLOauthDB) GetClientRoleAllowedURIList(roleID int64) *[]odb.ClientRoleURI
GetClientRoleAllowedURIList GetClientRoleAllowedURIList
func (*MySQLOauthDB) GetClientRoleAllowedURIListByClientID ¶
func (d *MySQLOauthDB) GetClientRoleAllowedURIListByClientID(clientID int64) *[]odb.RoleURI
GetClientRoleAllowedURIListByClientID GetClientRoleAllowedURIListByClientID
func (*MySQLOauthDB) GetClientRoleList ¶
func (d *MySQLOauthDB) GetClientRoleList(clientID int64) *[]odb.ClientRole
GetClientRoleList GetClientRoleList
func (*MySQLOauthDB) GetClientScopeList ¶
func (d *MySQLOauthDB) GetClientScopeList(clientID int64) *[]odb.ClientScope
GetClientScopeList GetClientScopeList
func (*MySQLOauthDB) GetClients ¶
func (d *MySQLOauthDB) GetClients() *[]odb.Client
GetClients GetClients
func (*MySQLOauthDB) GetCredentialsGrant ¶
func (d *MySQLOauthDB) GetCredentialsGrant(clientID int64) *[]odb.CredentialsGrant
GetCredentialsGrant GetCredentialsGrant
func (*MySQLOauthDB) GetImplicitGrant ¶
func (d *MySQLOauthDB) GetImplicitGrant(clientID int64, userID string) *[]odb.ImplicitGrant
GetImplicitGrant GetImplicitGrant
func (*MySQLOauthDB) GetImplicitGrantByScope ¶
func (d *MySQLOauthDB) GetImplicitGrantByScope(clientID int64, userID string, scope string) *[]odb.ImplicitGrant
GetImplicitGrantByScope GetImplicitGrantByScope
func (*MySQLOauthDB) GetImplicitGrantScopeList ¶
func (d *MySQLOauthDB) GetImplicitGrantScopeList(ig int64) *[]odb.ImplicitScope
GetImplicitGrantScopeList GetImplicitGrantScopeList
func (*MySQLOauthDB) GetPasswordGrant ¶
func (d *MySQLOauthDB) GetPasswordGrant(clientID int64, userID string) *[]odb.PasswordGrant
GetPasswordGrant GetPasswordGrant
func (*MySQLOauthDB) GetRefreshToken ¶
func (d *MySQLOauthDB) GetRefreshToken(id int64) *odb.RefreshToken
GetRefreshToken GetRefreshToken
func (*MySQLOauthDB) GetRefreshTokenKey ¶
func (d *MySQLOauthDB) GetRefreshTokenKey() string
GetRefreshTokenKey GetRefreshTokenKey
func (*MySQLOauthDB) GetSessionKey ¶
func (d *MySQLOauthDB) GetSessionKey() string
GetSessionKey GetSessionKey
func (*MySQLOauthDB) SearchClients ¶
func (d *MySQLOauthDB) SearchClients(name string) *[]odb.Client
SearchClients SearchClients
func (*MySQLOauthDB) UpdateAccessToken ¶
func (d *MySQLOauthDB) UpdateAccessToken(tx dbtx.Transaction, t *odb.AccessToken) bool
UpdateAccessToken UpdateAccessToken
func (*MySQLOauthDB) UpdateAuthorizationCode ¶
func (d *MySQLOauthDB) UpdateAuthorizationCode(code *odb.AuthorizationCode) bool
UpdateAuthorizationCode UpdateAuthorizationCode
func (*MySQLOauthDB) UpdateAuthorizationCodeAndToken ¶
func (d *MySQLOauthDB) UpdateAuthorizationCodeAndToken(code *odb.AuthorizationCode, at *odb.AccessToken) bool
UpdateAuthorizationCodeAndToken UpdateAuthorizationCodeAndToken
func (*MySQLOauthDB) UpdateClient ¶
func (d *MySQLOauthDB) UpdateClient(client *odb.Client) bool
UpdateClient UpdateClient
func (*MySQLOauthDB) UpdateClientAllowedURI ¶
func (d *MySQLOauthDB) UpdateClientAllowedURI(au *odb.ClientAllowedURI) bool
UpdateClientAllowedURI UpdateClientAllowedURI
func (*MySQLOauthDB) UpdateRefreshToken ¶
func (d *MySQLOauthDB) UpdateRefreshToken(t *odb.RefreshToken) bool
UpdateRefreshToken UpdateRefreshToken