Documentation
¶
Index ¶
- Constants
- type Config
- type Session
- func (s Session) BuildUserFromStoreData(data []map[string]string) (u *model.User, err string)
- func (s Session) Checking(u *model.User, params []map[string]string) (user_db map[string]string, err string)
- func (s Session) DecodeUser(encode_user string) (u *model.User, err string)
- func (s Session) NameOfAuthHandler() string
- func (s *Session) UserInterface(opt ...string) string
- type SessionStore
Constants ¶
View Source
const MODULE_NAME = "user"
View Source
const OBJECT_LOGIN = "login"
View Source
const TABLE_NAME = "session"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.4
type Config struct { UserTableName string // ej: staff,user,client FieldUser *model.Field FieldPassword *model.Field FieldID string // ej: id_staff, id_user FieldName string //ej: staff_name, user_name FieldArea string //ej: staff_area, user_area AreasName map[string]string // areas del sistema key y su nombre FieldAccessLevel string // ej: staff_credentials, user_level model.CookieExpiration // contains filtered or unexported fields }
type Session ¶
func (Session) BuildUserFromStoreData ¶ added in v0.0.5
func (Session) DecodeUser ¶ added in v0.0.8
func (Session) NameOfAuthHandler ¶ added in v0.0.3
func (*Session) UserInterface ¶ added in v0.0.2
type SessionStore ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.