Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2016 Changes in this version + type Action interface + WhenJailed func(a *Actor, r *Rule) error + WhenTimeServed func(a *Actor, r *Rule) error + type Actor struct + type Director struct + func NewDirector(ma int32) *Director + type Rule struct + Action Action + ExpireBase time.Duration + Message string + Name string + Sentence time.Duration + StrikeLimit int + func NewClassicRule(n string, m string) *Rule + type Studio struct + func NewStudio(md int32) *Studio + func (st *Studio) ActorExists(an string) bool + func (st *Studio) AddRule(r *Rule) + func (st *Studio) ApplyRules() error + func (st *Studio) CreateActor(an string, rn string) error + func (st *Studio) CreateDirectors(ma int32) error + func (st *Studio) CreateInfraction(an string, rn string) error + func (st *Studio) Infraction(an string, rn string) error + func (st *Studio) InfractionExists(an string, rn string) bool + func (st *Studio) IsJailed(an string) bool + func (st *Studio) IsJailedFor(an string, rn string) bool + func (st *Studio) KeepAlive(an string) error + func (st *Studio) StartReaper(dur time.Duration) + func (st *Studio) Status() *message + func (st *Studio) Strikes(an string, rn string) (int, error) + func (st Studio) Director(an string) *Director