modulepackage
0.2.0
Repository: https://github.com/rainlay/go-oauth2-xorm.git
Documentation: pkg.go.dev
# README
XORM (MySQL) Storage for OAuth 2.0 v4
Credits
Client storage Based on go-oauth2/mysql
Token storage Based on https://github.com/imrenagi/go-oauth2-mysql
MIT License
Copyright (c) 2018 Lyric
# Functions
NewClientStore creates xorm mysql store instance.
NewConfig create mysql configuration instance.
NewDefaultStore create mysql store instance.
NewStore create mysql store instance, config mysql configuration, tableName table name (default oauth2_token), GC time interval (in seconds, default 600).
NewStoreWithDB create mysql store instance, db sql.DB, tableName table name (default oauth2_token), GC time interval (in seconds, default 600).
WithClientStoreInitTableDisabled returns option that disables table creation on client store instantiation.
WithClientStoreTableName returns option that sets client store table name.
# Structs
No description provided by the author
ClientStoreItem data item.
Config mysql configuration.
Store mysql token store.
StoreItem data item.
# Type aliases
ClientStoreOption is the configuration options type for client store.