Documentation
¶
Index ¶
- type Committee
- type Event
- type Officer
- type Position
- type Positions
- type Post
- type PostStore
- type SessionStore
- func (ss *SessionStore) AuthCodeURL(state string) string
- func (ss *SessionStore) GenToken(code string) (*oauth2.Token, error)
- func (ss *SessionStore) GetEvent(id int) (*Event, error)
- func (ss *SessionStore) GetUsername(token *oauth2.Token) (string, error)
- func (ss *SessionStore) ListEvents() ([]Event, error)
- type User
- type UserStore
- func (us *UserStore) Create(username, password string) (int, error)
- func (us *UserStore) Get(id int) (User, Positions, error)
- func (us *UserStore) GetByUsername(username string) (User, Positions, error)
- func (us *UserStore) GetCommittee() (executive Committee, committee Committee, err error)
- func (us *UserStore) Validate(username, password string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostStore ¶
type PostStore struct {
// contains filtered or unexported fields
}
func NewPostStore ¶
type SessionStore ¶
type SessionStore struct { sessions.CookieStore // contains filtered or unexported fields }
func NewSessionFromConfig ¶
func NewSessionFromConfig(db structs.Database) *SessionStore
func NewSessionStore ¶
func NewSessionStore(c *structs.Config, querier database.Querier) *SessionStore
func (*SessionStore) AuthCodeURL ¶
func (ss *SessionStore) AuthCodeURL(state string) string
func (*SessionStore) GenToken ¶
func (ss *SessionStore) GenToken(code string) (*oauth2.Token, error)
func (*SessionStore) GetUsername ¶
func (ss *SessionStore) GetUsername(token *oauth2.Token) (string, error)
func (*SessionStore) ListEvents ¶
func (ss *SessionStore) ListEvents() ([]Event, error)
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
func NewUserStore ¶
func (*UserStore) GetByUsername ¶
func (*UserStore) GetCommittee ¶
Click to show internal directories.
Click to hide internal directories.