Documentation ¶
Index ¶
- Variables
- type MultiContainer
- func (c *MultiContainer) Get(key string) interface{}
- func (c *MultiContainer) GetAPIKeyRepo() key.APIKeyRepo
- func (c *MultiContainer) GetAuthKeyRepo() key.AuthKeyRepo
- func (c *MultiContainer) GetResolveService() *resolver.Service
- func (c *MultiContainer) GetSubscriptionRepo() subscription.Repository
- func (c *MultiContainer) GetTicketRepo() ticket.Repository
- func (c *MultiContainer) SetNonShared(key string, f maincontainer.ServiceFunc)
- func (c *MultiContainer) SetShared(key string, f maincontainer.ServiceFunc)
Constants ¶
This section is empty.
Variables ¶
View Source
var Instance = MultiContainer{ // contains filtered or unexported fields }
Instance is the main bitmaelum service container
Functions ¶
This section is empty.
Types ¶
type MultiContainer ¶
type MultiContainer struct {
// contains filtered or unexported fields
}
MultiContainer is a struct that holds both the general and client container
func (*MultiContainer) Get ¶
func (c *MultiContainer) Get(key string) interface{}
Get will fetch a definition from the client container
func (*MultiContainer) GetAPIKeyRepo ¶
func (c *MultiContainer) GetAPIKeyRepo() key.APIKeyRepo
GetAPIKeyRepo will return the current api key repository
func (*MultiContainer) GetAuthKeyRepo ¶
func (c *MultiContainer) GetAuthKeyRepo() key.AuthKeyRepo
GetAuthKeyRepo will return the current auth key repository
func (*MultiContainer) GetResolveService ¶
func (c *MultiContainer) GetResolveService() *resolver.Service
GetResolveService will return the current resolver service
func (*MultiContainer) GetSubscriptionRepo ¶
func (c *MultiContainer) GetSubscriptionRepo() subscription.Repository
GetSubscriptionRepo will return the current subscription repository
func (*MultiContainer) GetTicketRepo ¶
func (c *MultiContainer) GetTicketRepo() ticket.Repository
GetTicketRepo will return the current ticket repository
func (*MultiContainer) SetNonShared ¶
func (c *MultiContainer) SetNonShared(key string, f maincontainer.ServiceFunc)
SetNonShared will set a definition inside the client container
func (*MultiContainer) SetShared ¶
func (c *MultiContainer) SetShared(key string, f maincontainer.ServiceFunc)
SetShared will set a definition inside the client container
Click to show internal directories.
Click to hide internal directories.