Documentation ¶
Index ¶
- func AllowCors(next http.Handler) http.Handler
- func Publisher(base *Base, queries <-chan QueryRequestWrap)
- func Serve(base *Base, s *bot.Sylon, queries chan<- QueryRequestWrap)
- func SetQRespInCache(base *Base, requestId string, status QStatus, msg string)
- type Base
- type ProjectResp
- type PublicController
- type QResp
- type QStatus
- type QueryRequest
- type QueryRequestWrap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Publisher ¶
func Publisher(base *Base, queries <-chan QueryRequestWrap)
Types ¶
type Base ¶
type Base struct { Config *storage.InternalConfig MediaPath string R *sqlx.DB Cache caching.Cache Log *zap.Logger }
func (*Base) CreateMediaDirIfNotExists ¶
CreateMediaDirIfNotExists creates the directory in default media path. It can accept nested directory path, but all parent directories must exist. Returns full directory path.
type ProjectResp ¶
type ProjectResp struct { ID string `db:"id"` SecretKey string `db:"secret_key"` PrettyTitle sql.NullString `db:"pretty_title"` }
type PublicController ¶
type PublicController struct {
B *Base
}
type QueryRequest ¶
type QueryRequestWrap ¶
Click to show internal directories.
Click to hide internal directories.