You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oalib/config.go

23 lines
339 B
Go

package oalib
/**
* @name: config
* @author: veypi <i@veypi.com>
* @date: 2021-11-17 16:30
* @descriptionconfig
* @update: 2021-11-17 16:30
**/
type Config struct {
Host string
UUID string
Key string
}
func (c *Config) Valid() bool {
if c != nil && c.Host != "" && c.UUID != "" && c.Key != "" {
return true
}
return false
}