Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EntrySavedMessage = "Entry saved in cache store" CouldNotSaveEntryErrorMessage = "Could not save entry in cache store" )
Functions ¶
This section is empty.
Types ¶
type MultiTenantServer ¶
type MultiTenantServer struct {
Logger *cm_logger.Logger
Router *cm_router.Router
StorageBackend storage.Backend
ExternalCacheStore cache.Store
InternalCacheStore map[string]*cacheEntry
MaxStorageObjects int
IndexLimit int
AllowOverwrite bool
AllowForceOverwrite bool
APIEnabled bool
UseStatefiles bool
ChartURL string
ChartPostFormFieldName string
ProvPostFormFieldName string
Limiter chan struct{}
Tenants map[string]*tenantInternals
TenantCacheKeyLock *sync.Mutex
}
MultiTenantServer contains a Logger, Router, storage backend and object cache
func NewMultiTenantServer ¶
func NewMultiTenantServer(options MultiTenantServerOptions) (*MultiTenantServer, error)
NewMultiTenantServer creates a new MultiTenantServer instance
func (*MultiTenantServer) Listen ¶
func (server *MultiTenantServer) Listen(port int)
Listen starts the router on a given port
func (*MultiTenantServer) Routes ¶
func (s *MultiTenantServer) Routes() []*cm_router.Route
type MultiTenantServerOptions ¶
type MultiTenantServerOptions struct {
Logger *cm_logger.Logger
Router *cm_router.Router
StorageBackend storage.Backend
ExternalCacheStore cache.Store
ChartURL string
ChartPostFormFieldName string
ProvPostFormFieldName string
MaxStorageObjects int
IndexLimit int
GenIndex bool
AllowOverwrite bool
AllowForceOverwrite bool
EnableAPI bool
UseStatefiles bool
}
MultiTenantServerOptions are options for constructing a MultiTenantServer
type StorageObject ¶
Click to show internal directories.
Click to hide internal directories.