Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAuthTokenNotFound returns when an auth-token doesn't exist. ErrAuthTokenNotFound = errors.New("auth token not found") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager creates Api instances, or loads existing ones them from an auth-token.
func New ¶
func New(ds datastore.Datastore, wm ffs.WalletManager, sched *scheduler.Scheduler) (*Manager, error)
New returns a new Manager.
func (*Manager) GetByAuthToken ¶
GetByAuthToken loads an existing instance using an auth-token. If auth-token doesn't exist, it returns ErrAuthTokenNotFound.
Click to show internal directories.
Click to hide internal directories.