Documentation
ΒΆ
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Baboon ΒΆ
type Baboon struct { // Config holds all baboon required config settings Config Config // Log is the default logger for baboon // Applications using baboon should assign their own loggers as in the skeleton app. Log *logger.Logger // Scheduler can be used to schedule tasks (like cron jobs) Scheduler *cron.Cron // Server is the baboon app server. Server *server.Server // RPCServer is baboon's RPC server RPCServer *rpc.RPCServer // Mailer is the baboon app mailer Mailer *mail.Mailer // Database holds baboon's main database Database *db.Database // Cache is baboon's cache client Cache cache.Cache }
type Config ΒΆ
type Config struct { AppName string // Rootpath is the rootpath of the application. Usually this the full path to the bin file. Rootpath string // Debug is used to set some functionality in debug mode. Mostly being more explicit in log info and errors. Debug bool // Host will be used by the server. Host string // Port will be used by the server. Port string // RPC port if set baboon also starts an rpc listener RPCport string // EncryptionKey is used to encrypt and decrypt with their respective functions. EncryptionKey string // Renderer sets which type of template engine will be used. Renderer string // SessionType sets which type of session store to use i.e. cookie, cache, db. SessionType string // CacheType sets which cache client to use CacheType string // CachePrefix sets the cache prefix for the server CachePrefix string // RedisConfig holds redis client configuration Redis cache.RedisConfig // Cookie holds cookie configuration Cookie CookieConfig // DatabaseConfig holds the database configuration. DatabaseConfig db.DatabaseConfig // MailerService sets the mailer service MailerService string // MailerSettings holds the mailer settings MailerSettings mail.MailerSettings }
Config holds all configuration settings to be used throughout baboon.
type CookieConfig ΒΆ
type CookieConfig struct { // Name defaults to baboon Name string // Domain defaults to localhost Domain string // Lifetime defaults to 1440 minutes LifeTime int // time in minutes // Secure defaults to false Secure bool // Persist defaults to false Persist bool // SameSite defaults to SameSiteStrict mode SameSite http.SameSite }
Directories
ΒΆ
Path | Synopsis |
---|---|
cmd
|
|
cli/bobo
Bobo is a CLI tool used with the gobaboon app framework, check the README.md for more info.
|
Bobo is a CLI tool used with the gobaboon app framework, check the README.md for more info. |
internal
|
|
pkg/render
Render package renders HTML templates found in the rootpath/views folder of the project.
|
Render package renders HTML templates found in the rootpath/views folder of the project. |
pkg/server
Server package is responsible for creating the server for the baboon application.
|
Server package is responsible for creating the server for the baboon application. |
pkg
|
|
db
Package db facades the creation of different db connections and adapter imports in order to return a generalised db type.
|
Package db facades the creation of different db connections and adapter imports in order to return a generalised db type. |
logger
Logger package abstracts the creation of service oriented loggers with log rotating build in.
|
Logger package abstracts the creation of service oriented loggers with log rotating build in. |
mail
Package mail contains a simple mailer that connects to your mail service and sends emails through the jobs channel or direct methods calls.
|
Package mail contains a simple mailer that connects to your mail service and sends emails through the jobs channel or direct methods calls. |
Click to show internal directories.
Click to hide internal directories.