Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewLineOptions, NewImpl, repo.ProviderSet)
ProviderSet is a provider set for wire
Functions ¶
This section is empty.
Types ¶
type IBiz ¶
type IBiz interface { // GetLoginURLWithLine serve caller to get line login url GetLoginURLWithLine(ctx contextx.Contextx, redirectURL, state, scope string, opts LineRequestOptions) (info string, err error) // CallbackForLine serve caller to callback after line oauth2 login CallbackForLine(ctx contextx.Contextx, redirectURL, code string) (info *user.Profile, err error) }
IBiz declare user business functions
func CreateIBiz ¶
type LineOptions ¶
type LineOptions struct { BaseURL string `json:"base_url" yaml:"baseURL"` APIURL string `json:"api_url" yaml:"apiURL"` ClientID string `json:"client_id" yaml:"clientID"` ClientSecret string `json:"client_secret" yaml:"clientSecret"` }
LineOptions declare line configuration
func NewLineOptions ¶
func NewLineOptions(v *viper.Viper) (*LineOptions, error)
NewLineOptions new line options
type LineRequestOptions ¶
LineRequestOptions declare line login page configuration
Click to show internal directories.
Click to hide internal directories.