Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("doctrine not found")
Functions ¶
This section is empty.
Types ¶
type BBoltRepository ¶ added in v1.1.0
type BBoltRepository interface { Repository PriceHistory io.Closer }
func NewBBoltRepository ¶ added in v1.1.0
func NewBBoltRepository(databaseFile string) (BBoltRepository, error)
type ContractedOn ¶
type ContractedOn string
const ( Alliance ContractedOn = "alliance" Corporation ContractedOn = "corporation" )
type Doctrine ¶
type Doctrine struct { Name string `json:"name"` // Name of the doctrine. RequireStock int `json:"require_stock"` // How many to have on contract. ContractedOn ContractedOn `json:"contracted_on"` // Alliance/Corporation contract. Price DoctrinePrice `json:"doctrine_price"` // Price details. }
type DoctrinePrice ¶ added in v1.1.0
type PriceHistory ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.