Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts *Options) (authenticationcontroller.AuthenticationController, error)
New returns an AuthenticationControler that uses a SQL database for handling users and JWT for tokens.
Types ¶
type Options ¶
type Options struct {
Driver, DSN string
Authenticator *lib.Authenticator
}
Options holds the configuration parameters used by the controller.
Click to show internal directories.
Click to hide internal directories.