Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Keeper *roomkeeper.Keeper UserManager *userauth.Manager SessionStoreFactory SessionStoreFactory Scheduler *scheduler.Scheduler // contains filtered or unexported fields }
type Options ¶
type Options struct { WebSocket websockutil.Options `toml:"websocket"` ReadCursorTimeout time.Duration `toml:"read-cursor-timeout"` RoomRPSLimit float64 `toml:"room-rps-limit"` RoomRPSBurst int `toml:"room-rps-burst"` ServerID string `toml:"server-id"` Session SessionOptions `toml:"session"` CSRFKey []byte `toml:"-"` Compression string `toml:"compression"` }
func (*Options) FillDefaults ¶
func (o *Options) FillDefaults()
type SessionOptions ¶
type SessionOptions struct { Key []byte `toml:"-"` CleanupInterval time.Duration `toml:"cleanup-interval"` Insecure bool `toml:"insecure"` MaxAge time.Duration `toml:"max-age"` }
func (*SessionOptions) AssignSessionOptions ¶
func (o *SessionOptions) AssignSessionOptions(s *sessions.Options)
func (SessionOptions) Clone ¶
func (o SessionOptions) Clone() SessionOptions
func (*SessionOptions) FillDefaults ¶
func (o *SessionOptions) FillDefaults()
type SessionStoreFactory ¶
type SessionStoreFactory interface {
NewSessionStore(ctx context.Context, opts SessionOptions) sessions.Store
}
Source Files ¶
- data_perms.go
- embed.go
- handle.go
- middleware.go
- page.go
- page_404.go
- page_contest.go
- page_contests.go
- page_contests_new.go
- page_invite.go
- page_invites.go
- page_login.go
- page_logout.go
- page_main.go
- page_profile.go
- page_room.go
- page_roomtokens.go
- page_roomtokens_new.go
- page_user.go
- page_users.go
- part_cursor.go
- part_errors.go
- part_fen.go
- part_human_time.go
- part_player.go
- part_progress.go
- part_room_buttons.go
- part_user.go
- template.go
- util.go
- websocket_room.go
Click to show internal directories.
Click to hide internal directories.