Versions in this module Expand all Collapse all v0 v0.6.7 May 28, 2021 Changes in this version + var Post = gokits.ServePost v0.6.6 May 25, 2021 Changes in this version + var DB *sqlx.DB + func ConfigLoader(name string, config interface{}, sql string, lifeSpan time.Duration, ...) (*gokits.CacheItem, error) + func Handle(mux *http.ServeMux) + func InitSqlxDB() + func Load() + func LoadConfig(configFile string, config interface{}) + func PublishToClusterNodes(consumer func(address string)) + func RegisterHandler(handler Handler) + func RegisterLoader(loader Loader) + func ServerAddr() string + func TokenLoader(name string, queryDest UpdatedRecord, querySql string, ...) (*gokits.CacheItem, error) + func TokenLoaderStrict(name string, queryDest ExpireTimeRecord, querySql string, ...) (*gokits.CacheItem, error) + func TrimPrefixPath(request *http.Request, subPath string) string + type Config struct + ClusterNodeAddresses []string + ConnMaxIdleTime gokits.Duration + ConnMaxLifetime gokits.Duration + DataSourceName string + DriverName string + LogLevel string + MaxIdleConns int + MaxOpenConns int + type ExpireTimeRecord interface + GetExpireTime func() int64 + type Handler func(mux *http.ServeMux) + type HandlerRegistry struct + func NewHandlerRegistry() *HandlerRegistry + func (r *HandlerRegistry) Register(handler Handler) + type Loader func(configFile string) + type LoaderRegistry struct + func NewLoaderRegistry() *LoaderRegistry + func (r *LoaderRegistry) Register(loader Loader) + type UpdatedRecord interface + GetUpdated func() string