Documentation ¶
Index ¶
- func AssetFS() *assetfs.AssetFS
- func Context(h http.Handler) http.Handler
- func Edit(w http.ResponseWriter, r *http.Request)
- func GetAddr(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Migrate(db *gorm.DB) error
- func PlaceVote(w http.ResponseWriter, r *http.Request)
- func SaveEdit(w http.ResponseWriter, r *http.Request)
- func View(w http.ResponseWriter, r *http.Request)
- type App
- func (app *App) OnNewChatMessage(channel string, user twitch.User, message twitch.Message)
- func (app *App) Payout(w http.ResponseWriter, r *http.Request)
- func (app *App) Ping()
- func (app *App) RPCLoad(addrs []fakutil.Address) error
- func (app *App) SetBelt(w http.ResponseWriter, r *http.Request)
- func (app *App) Socket(w http.ResponseWriter, r *http.Request)
- func (app *App) StartChatMonitor(channel string) error
- func (app *App) StartRPC(cfg *rpcclient.ConnConfig, params *chaincfg.Params) (err error)
- type Belt
- type BeltCtx
- type BeltHolder
- type Bet
- type BetTx
- type ChatMsg
- type FAK
- type Hub
- type LogLog
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Upgrader websocket.Upgrader Token string // contains filtered or unexported fields }
func (*App) OnNewChatMessage ¶
func (*App) StartChatMonitor ¶
type Belt ¶
type BeltCtx ¶
type BeltCtx struct { *Belt // contains filtered or unexported fields }
func (*BeltCtx) SaveWithOptions ¶
type BeltHolder ¶
type BeltHolder uint
const ( Brian BeltHolder = 1 << iota Jury Bryce Bonnie )
func Check ¶
func Check(msg string) (hold BeltHolder)
func Win ¶
func Win(h [4]int) ([]BeltHolder, int)
func (BeltHolder) Split ¶
func (h BeltHolder) Split() (ret [4]int)
func (BeltHolder) Split2 ¶
func (h BeltHolder) Split2() (ret []BeltHolder)
func (BeltHolder) String ¶
func (h BeltHolder) String() string
type Bet ¶
type BetTx ¶
type BetTx struct { ID uint `json:"-" gorm:"primary_key"` CreatedAt time.Time `json:"-"` BetID uint `json:"-"` Hash string `json:"hash" gorm:"size:64;unique_index;not null"` Index uint32 `json:"index" gorm:"not null"` Value FAK `json:"value" gorm:"not null"` Confirmations int `json:"confirmations" gorm:"default:0;not null"` }
type ChatMsg ¶
type ChatMsg struct { twitch.User twitch.Message Belt BeltHolder }
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) BeltHolder ¶
func (*Hub) Unsubscribe ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.