Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalConfig ¶
func MarshalConfig(config AuthStruct) ([]byte, error)
func RemoveUser ¶
func RemoveUser(config *AuthStruct, username string, userType string) error
Types ¶
type AuthStruct ¶
type AuthStruct struct {
Users []User `json:"users"`
}
func LoadConfig ¶
func LoadConfig(path string) (*AuthStruct, error)
Click to show internal directories.
Click to hide internal directories.