core

package
v0.0.0-...-c88a890 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address ID     `gorm:"unique;not null" json:"id"`
	Name    string `json:"owner"`
	gorm.Model
}

type AccountCreateDTO

type AccountCreateDTO struct {
	Address string `json:"account"`
	Name    string `json:"name"`
}

type AccountsService

type AccountsService interface {
	Create(ctx context.Context, dto *AccountCreateDTO) error
	Retrieve(ctx context.Context, address ID) (*Account, error)
}

type AccountsStore

type AccountsStore interface {
	// Stores account obj and return account Address
	Insert(ctx context.Context, account *Account) error
	FindByID(ctx context.Context, accountID ID) (*Account, error)
}

type FaucetService

type FaucetService interface {
	FulFill(address string) (string, error)
}

type Faucets

type Faucets string

type FaucetsStore

type FaucetsStore interface {
	AddToList(address string)
	IsFullfilledLast24H(address string) bool
}

type ID

type ID string

Jump to

Keyboard shortcuts

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