container

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL