Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppName string `yaml:"app_name" json:"app_name"` Hash string Contracts []Contract `yaml:"contracts" json:"contracts"` StartBlock uint64 `yaml:"start_block" json:"start_block"` }
func (*Config) ComputeHash ¶
func (*Config) GetContract ¶
type ContractRepository ¶
type NatsContractRepository ¶
type NatsContractRepository struct {
// contains filtered or unexported fields
}
func NewPebbleContractRepository ¶
func NewPebbleContractRepository(s storage.Storage) *NatsContractRepository
func (*NatsContractRepository) GetConfig ¶
func (r *NatsContractRepository) GetConfig(name string) (*Config, error)
func (*NatsContractRepository) GetConfigs ¶
func (r *NatsContractRepository) GetConfigs() ([]Config, error)
func (*NatsContractRepository) SaveConfig ¶
func (r *NatsContractRepository) SaveConfig(c Config) error
Click to show internal directories.
Click to hide internal directories.