account

package
v0.0.0-...-0e3259e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 7 Imported by: 4

Documentation

Overview

Package account has account struct type and datastore query functions.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPutAccount = errors.New("error while putting account into the datastore")
)

Errors

Functions

This section is empty.

Types

type Account

type Account struct {
	ID           string            `datastore:"-"`
	Name         string            `json:"name"`
	Type         string            `json:"type"`
	Addresses    address.Addresses `datastore:"-" json:"addresses"`
	Status       string            `json:"status"`
	About        string            `json:"about"`
	Registered   time.Time         `json:"registered"`
	LastModified time.Time         `json:"lastModified"`
	Score        score.Score       `datastore:"-" json:"score"`
	RankIDs      []*datastore.Key  `json:"rankIDs"`
	Ranks        rank.Ranks        `datastore:"-" json:"ranks"`
	BankAccounts []BankAccount     `json:"bankAccount" valid:"bankAccount"`
}

Account is the struct for register accounts. Hide name when sending. Type values are "individual" and "corporate".

func Get

func Get(ctx context.Context, i interface{}) (*Account, error)

Get returns the entity via key or key name and an error.

type Accounts

type Accounts map[string]*Account

Accounts is a map[string]*Account.

type BankAccount

type BankAccount struct {
	IMEI string `json:"IMEI"`
}

BankAccount is the struct for store accounts bank account infos..

type Entity

type Entity interface {
}

Entity USE THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Jump to

Keyboard shortcuts

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