Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Roles = roles{ Roles: base_roles.BaseRoles, Listing: listingRoles{ Super: "listing.super", Create: "listing.create", Update: "listing.update", Delete: "listing.delete", Enable: "listing.enable", Disable: "listing.disable", ReOrder: "listing.re_order", Restore: "listing.restore", List: "listing.list", View: "listing.view", }, Business: businessRoles{ Super: "business.super", }, }
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Protocol string `env:"PROTOCOL" envDefault:"http"` DB struct { Listing MongoListing } Grpc Grpc Http Http HttpHeaders HttpHeaders I18n I18n Topics Topics Session Session Nats Nats Redis Redis TokenSrv TokenSrv CacheRedis CacheRedis CDN CDN RSA RSA }
type BookingTopics ¶
type CacheRedis ¶
type CategoryTopics ¶
type CategoryTopics struct {
ListingValidationSuccess string `env:"STREAMING_TOPIC_CATEGORY_LISTING_VALIDATION_SUCCESS"`
}
type HttpHeaders ¶
type HttpHeaders struct { AllowedOrigins string `env:"CORS_ALLOWED_ORIGINS" envDefault:"*"` AllowedMethods string `env:"CORS_ALLOWED_METHODS" envDefault:"GET,LISTING,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 ListingTopics ¶
type ListingTopics struct { Created string `env:"STREAMING_TOPIC_LISTING_CREATED"` Updated string `env:"STREAMING_TOPIC_LISTING_UPDATED"` Deleted string `env:"STREAMING_TOPIC_LISTING_DELETED"` Disabled string `env:"STREAMING_TOPIC_LISTING_DISABLED"` Enabled string `env:"STREAMING_TOPIC_LISTING_ENABLED"` ReOrdered string `env:"STREAMING_TOPIC_LISTING_REORDERED"` Restored string `env:"STREAMING_TOPIC_LISTING_RESTORED"` }
type MongoListing ¶
type MongoListing struct { Host string `env:"MONGO_LISTING_HOST" envDefault:"localhost"` Port string `env:"MONGO_LISTING_PORT" envDefault:"27017"` Username string `env:"MONGO_LISTING_USERNAME" envDefault:""` Password string `env:"MONGO_LISTING_PASSWORD" envDefault:""` Database string `env:"MONGO_LISTING_DATABASE" envDefault:"account"` Collection string `env:"MONGO_LISTING_COLLECTION" envDefault:"accounts"` Query string `env:"MONGO_LISTING_QUERY" envDefault:""` }
type Topics ¶
type Topics struct { Listing ListingTopics Category CategoryTopics Booking BookingTopics }
Click to show internal directories.
Click to hide internal directories.