Documentation ¶
Index ¶
- Variables
- func InitialiseService(store Store, overwrite bool) error
- func IsInitialised(store Store) (bool, error)
- func UpdateConfig(store Store, cfg *Config) error
- type APIV1Config
- type Config
- type ConnectionsManagerBuilderFunc
- type InteractorBuilderFunc
- type LoggerBuilderFunc
- type NetworkStore
- type PolicyBuilderFunc
- type ProcessStoppedNotifier
- type ServerConfig
- type Service
- type Starter
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLogLevelValue = errors.New("the service log level is invalid") ErrInvalidMaximumTokenDuration = errors.New("the maximum token duration is invalid") ErrServerHostUnset = errors.New("the service host is unset") ErrServerPortUnset = errors.New("the service port is unset") )
View Source
var ErrCannotStartMultipleServiceAtTheSameTime = errors.New("cannot start multiple service at the same time")
Functions ¶
func InitialiseService ¶
func IsInitialised ¶
func UpdateConfig ¶ added in v0.68.0
Types ¶
type APIV1Config ¶ added in v0.68.0
type APIV1Config struct {
MaximumTokenDuration vgencoding.Duration `json:"maximumTokenDuration"`
}
type Config ¶ added in v0.68.0
type Config struct { LogLevel vgencoding.LogLevel `json:"logLevel"` Server ServerConfig `json:"server"` APIV1 APIV1Config `json:"apiV1"` }
func DefaultConfig ¶ added in v0.68.0
func DefaultConfig() *Config
type ConnectionsManagerBuilderFunc ¶ added in v0.67.0
type ConnectionsManagerBuilderFunc func() *connections.Manager
type InteractorBuilderFunc ¶ added in v0.67.0
type InteractorBuilderFunc func(ctx context.Context) api.Interactor
InteractorBuilderFunc returns the interactor to use in the client API.
type LoggerBuilderFunc ¶ added in v0.67.0
LoggerBuilderFunc is used to build a logger. It returns the built logger and a zap.AtomicLevel to allow the caller to dynamically change the log level.
type NetworkStore ¶ added in v0.67.0
type PolicyBuilderFunc ¶ added in v0.67.0
PolicyBuilderFunc return the policy the API v1.
type ProcessStoppedNotifier ¶ added in v0.67.0
type ProcessStoppedNotifier func()
type ServerConfig ¶ added in v0.68.0
func (ServerConfig) String ¶ added in v0.68.0
func (c ServerConfig) String() string
type Service ¶
type Service struct { *httprouter.Router // contains filtered or unexported fields }
func NewService ¶
type Starter ¶ added in v0.67.0
type Starter struct {
// contains filtered or unexported fields
}
func NewStarter ¶ added in v0.67.0
func NewStarter( walletStore api.WalletStore, netStore api.NetworkStore, svcStore Store, connectionsManager *connections.Manager, policyBuilderFunc PolicyBuilderFunc, interactorBuilderFunc InteractorBuilderFunc, loggerBuilderFunc LoggerBuilderFunc, ) *Starter
Directories ¶
Path | Synopsis |
---|---|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
store
|
|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
connections/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.