Documentation ¶
Index ¶
- Variables
- func ErrorPage(title string, code string, message string, homeLink string) string
- func StreamErrorPage(qw422016 *qt422016.Writer, title string, code string, message string, ...)
- func WriteErrorPage(qq422016 qtio422016.Writer, title string, code string, message string, ...)
- type AppConfigs
- type Container
- func (c *Container) Close() error
- func (c *Container) GetCache() contracts.Cache
- func (c *Container) GetConfig() contracts.Config
- func (c *Container) GetCron() contracts.CronJob
- func (c *Container) GetFiber() contracts.GoeFiber
- func (c *Container) GetLogger() contracts.Logger
- func (c *Container) GetMailer() contracts.Mailer
- func (c *Container) GetMeilisearch() contracts.Meilisearch
- func (c *Container) GetMongo() contracts.MongoDB
- func (c *Container) GetQueue() contracts.Queue
- func (c *Container) InitCache()
- func (c *Container) InitCron()
- func (c *Container) InitFiber()
- func (c *Container) InitMailer()
- func (c *Container) InitMeilisearch()
- func (c *Container) InitMongo()
- func (c *Container) InitQueue()
- type GoeConfig
- type GoeConfigFeatures
- type GoeConfigHttp
- type GoeConfigMailer
- type GoeConfigMeilisearch
- type GoeConfigMongodb
- type GoeConfigQueue
- type GoeConfigRedis
- type GoeConfigS3
- type GoeConfigSession
- type GoeFiber
- type GoeMailer
- type GoeMongoDB
- func (g *GoeMongoDB) Aggregate(model mongodb.IDefaultModel, pipeline any, res any) error
- func (g *GoeMongoDB) Delete(model mongodb.IDefaultModel) error
- func (g *GoeMongoDB) DeleteMany(model mongodb.IDefaultModel, filter any) (*omgo.DeleteResult, error)
- func (g *GoeMongoDB) Find(model mongodb.IDefaultModel, filter any) omgo.QueryI
- func (g *GoeMongoDB) FindById(model mongodb.IDefaultModel, id string, res any) (bool, error)
- func (g *GoeMongoDB) FindOne(model mongodb.IDefaultModel, filter any, res any) (bool, error)
- func (g *GoeMongoDB) FindPage(model mongodb.IDefaultModel, filter any, res any, pageSize int64, ...) (totalDoc int64, totalPage int64)
- func (g *GoeMongoDB) FindWithCursor(model mongodb.IDefaultModel, filter any) omgo.CursorI
- func (g *GoeMongoDB) Insert(model mongodb.IDefaultModel) (*omgo.InsertOneResult, error)
- func (g *GoeMongoDB) InsertMany(model mongodb.IDefaultModel, docs []any) (*omgo.InsertManyResult, error)
- func (g *GoeMongoDB) SetMeilisearch(meilisearch *msearch.MSearch) error
- func (g *GoeMongoDB) Update(model mongodb.IDefaultModel) error
- type GoeOIDCConfig
- type GoeQueue
- func (g *GoeQueue) Close() error
- func (g *GoeQueue) NewQueue(name contracts.QueueName, handler func(string) bool, ...) error
- func (g *GoeQueue) Push(queueName contracts.QueueName, payloadPtr any) error
- func (g *GoeQueue) PushDelayed(queueName contracts.QueueName, payloadPtr any, delayDuration time.Duration) error
- func (g *GoeQueue) PushDelayedRaw(queueName contracts.QueueName, payload string, delayDuration time.Duration) error
- func (g *GoeQueue) PushRaw(queueName contracts.QueueName, payload string) error
- func (g *GoeQueue) PushScheduled(queueName contracts.QueueName, payloadPtr any, t time.Time) error
- func (g *GoeQueue) PushScheduledRaw(queueName contracts.QueueName, payload string, t time.Time) error
- func (g *GoeQueue) Start() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RedisDBCache = 0 RedisDBMQ = 1 RedisDBRateLimiter = 2 RedisDBAuthSession = 3 RedisDBAuthOAuthState = 4 )
Functions ¶
func StreamErrorPage ¶
func WriteErrorPage ¶
Types ¶
type AppConfigs ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func UseGoeContainer ¶
func UseGoeContainer() *Container
func (*Container) Close ¶
Close closes the container and its dependencies. DON'T NEED TO CALL THIS METHOD MANUALLY, IT WILL BE CALLED AUTOMATICALLY WHEN THE APP SHUTS DOWN.
func (*Container) GetMeilisearch ¶
func (c *Container) GetMeilisearch() contracts.Meilisearch
func (*Container) InitMailer ¶
func (c *Container) InitMailer()
func (*Container) InitMeilisearch ¶
func (c *Container) InitMeilisearch()
type GoeConfig ¶
type GoeConfig struct { App *AppConfigs Features *GoeConfigFeatures MongoDB *GoeConfigMongodb Redis *GoeConfigRedis Meilisearch *GoeConfigMeilisearch Mailer *GoeConfigMailer Queue *GoeConfigQueue Http *GoeConfigHttp Session *GoeConfigSession S3 *GoeConfigS3 OIDC *GoeOIDCConfig }
func UseGoeConfig ¶
func UseGoeConfig() *GoeConfig
type GoeConfigFeatures ¶
type GoeConfigHttp ¶
type GoeConfigHttp struct { Port string `json:"port"` ServerHeader string `json:"server_header"` BodyLimit int `json:"body_limit"` Concurrency int `json:"concurrency"` ProxyHeader string `json:"proxy_header"` TrustProxyCheck bool `json:"trust_proxy_check"` TrustProxies []string `json:"trust_proxies"` ReduceMemory bool `json:"reduce_memory"` IPValidation bool `json:"ip_validation"` }
type GoeConfigMailer ¶
type GoeConfigMeilisearch ¶
type GoeConfigMongodb ¶
type GoeConfigQueue ¶
type GoeConfigRedis ¶
type GoeConfigS3 ¶
type GoeConfigSession ¶ added in v0.2.1
type GoeFiber ¶
type GoeFiber struct {
// contains filtered or unexported fields
}
func NewGoeFiber ¶
NewGoeFiber creates a new GoeFiber instance.
func (*GoeFiber) CreateFiberApp ¶
func (*GoeFiber) GoeFiberErrorHandler ¶
type GoeMailer ¶
type GoeMailer struct {
// contains filtered or unexported fields
}
func NewGoeMailer ¶
func (*GoeMailer) SMTPSender ¶
func (g *GoeMailer) SMTPSender() contracts.EmailSender
type GoeMongoDB ¶
type GoeMongoDB struct {
// contains filtered or unexported fields
}
func NewGoeMongoDB ¶
func NewGoeMongoDB(appConfig *GoeConfig, logger mongodb.Logger) (*GoeMongoDB, error)
func (*GoeMongoDB) Aggregate ¶
func (g *GoeMongoDB) Aggregate(model mongodb.IDefaultModel, pipeline any, res any) error
func (*GoeMongoDB) Delete ¶
func (g *GoeMongoDB) Delete(model mongodb.IDefaultModel) error
func (*GoeMongoDB) DeleteMany ¶ added in v0.2.0
func (g *GoeMongoDB) DeleteMany(model mongodb.IDefaultModel, filter any) (*omgo.DeleteResult, error)
func (*GoeMongoDB) Find ¶
func (g *GoeMongoDB) Find(model mongodb.IDefaultModel, filter any) omgo.QueryI
func (*GoeMongoDB) FindById ¶
func (g *GoeMongoDB) FindById(model mongodb.IDefaultModel, id string, res any) (bool, error)
func (*GoeMongoDB) FindOne ¶
func (g *GoeMongoDB) FindOne(model mongodb.IDefaultModel, filter any, res any) (bool, error)
func (*GoeMongoDB) FindPage ¶
func (g *GoeMongoDB) FindPage(model mongodb.IDefaultModel, filter any, res any, pageSize int64, currentPage int64, option ...*mongodb.FindPageOption) (totalDoc int64, totalPage int64)
func (*GoeMongoDB) FindWithCursor ¶
func (g *GoeMongoDB) FindWithCursor(model mongodb.IDefaultModel, filter any) omgo.CursorI
func (*GoeMongoDB) Insert ¶
func (g *GoeMongoDB) Insert(model mongodb.IDefaultModel) (*omgo.InsertOneResult, error)
func (*GoeMongoDB) InsertMany ¶
func (g *GoeMongoDB) InsertMany(model mongodb.IDefaultModel, docs []any) (*omgo.InsertManyResult, error)
func (*GoeMongoDB) SetMeilisearch ¶
func (g *GoeMongoDB) SetMeilisearch(meilisearch *msearch.MSearch) error
func (*GoeMongoDB) Update ¶
func (g *GoeMongoDB) Update(model mongodb.IDefaultModel) error
type GoeOIDCConfig ¶
type GoeQueue ¶
type GoeQueue struct {
// contains filtered or unexported fields
}
func NewGoeQueue ¶
func (*GoeQueue) PushDelayed ¶
func (*GoeQueue) PushDelayedRaw ¶
func (*GoeQueue) PushScheduled ¶
func (*GoeQueue) PushScheduledRaw ¶
Click to show internal directories.
Click to hide internal directories.