soccer-bot/manager/manager.go

24 lines
318 B
Go
Raw Normal View History

2017-08-08 16:32:45 +00:00
package manager
import (
"sync"
"github.com/patrickmn/go-cache"
)
type Manager struct {
// antiflood variables
cache *cache.Cache
// topic variables
topicStateLock sync.RWMutex
topicMap map[string]string
}
func NewManager() *Manager {
m := new(Manager)
m.initAntiflood()
m.initTopic()
return m
}