Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Roles = roles{ Roles: base_roles.BaseRoles, Help: helpRoles{ FaqCreate: "help.faq.create", FaqUpdate: "help.faq.update", FaqDeactivate: "help.faq.deactivate", FaqActivate: "help.faq.activate", FaqReOrder: "help.faq.reorder", FaqList: "help.faq.list", FaqRead: "help.faq.read", FaqSuper: "help.faq.super", CategoryCreate: "help.category.create", CategoryUpdate: "help.category.update", CategoryDeactivate: "help.category.deactivate", CategoryActivate: "help.category.activate", CategoryReOrder: "help.category.reorder", CategoryList: "help.category.list", CategoryRead: "help.category.read", CategorySuper: "help.category.super", ArticleCreate: "help.article.create", ArticleUpdate: "help.article.update", ArticleDeactivate: "help.article.deactivate", ArticleActivate: "help.article.activate", ArticleReOrder: "help.article.reorder", ArticleList: "help.article.list", ArticleRead: "help.article.read", ArticleSuper: "help.article.super", HelpSuper: "help.super", }, }
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { DB struct { Help MongoHelp Faq MongoFaq Category MongoCategory } Http Http HttpHeaders HttpHeaders I18n I18n Nats Nats Session Session RSA RSA Redis Redis CacheRedis CacheRedis TokenSrv TokenSrv }
type CacheRedis ¶
type HttpHeaders ¶
type HttpHeaders struct { AllowedOrigins string `env:"CORS_ALLOWED_ORIGINS" envDefault:"*"` AllowedMethods string `env:"CORS_ALLOWED_METHODS" envDefault:"GET,POST,PUT,DELETE,OPTIONS"` AllowedHeaders string `env:"CORS_ALLOWED_HEADERS" envDefault:"*"` AllowCredentials bool `env:"CORS_ALLOW_CREDENTIALS" envDefault:"true"` Domain string `env:"HTTP_HEADER_DOMAIN" envDefault:"*"` }
type MongoCategory ¶
type MongoCategory struct {
Collection string `env:"MONGO_CATEGORY_COLLECTION" envDefault:"categories"`
}
type MongoFaq ¶
type MongoFaq struct {
Collection string `env:"MONGO_FAQ_COLLECTION" envDefault:"faqs"`
}
type MongoHelp ¶
type MongoHelp struct { Host string `env:"MONGO_HELP_HOST" envDefault:"localhost"` Port string `env:"MONGO_HELP_PORT" envDefault:"27017"` Username string `env:"MONGO_HELP_USERNAME" envDefault:""` Password string `env:"MONGO_HELP_PASSWORD" envDefault:""` Database string `env:"MONGO_HELP_DATABASE" envDefault:"help"` Collection string `env:"MONGO_HELP_COLLECTION" envDefault:"helps"` Query string `env:"MONGO_HELP_QUERY" envDefault:""` }
Click to show internal directories.
Click to hide internal directories.