accountdb

package
v0.0.0-...-29e199f Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountApplicationAddresses

type AccountApplicationAddresses struct {
	// Address is the Ethereum account to interact with the network
	Address string `storage:"address"`
	// ApplicationID the ID of the Application associated to this account
	ApplicationID string `storage:"application_id"`
}

AccountApplicationAddresses filters a list of accounts based on their Application

type AccountCreateDB

type AccountCreateDB struct {
	// AccountDB is the data struct of the resource in the database
	AccountDB
}

AccountCreateDB is the data struct of the creation of a resource in the database

type AccountDB

type AccountDB struct {
	// InternalResourceID is the ID used to reference a resource internally in the application
	InternalResourceID string `storage:"internal_resource_id"`
	// Address is the Ethereum account to interact with the network
	Address string `storage:"address"`
	// ApplicationID the ID of the Application associated to this account
	ApplicationID string `storage:"application_id"`
	// UserID the ID of the User associated to this account
	UserID string `storage:"user_id"`
	// CreationDate is the timestamp of the moment of the creation of the resource
	CreationDate int64 `storage:"creation_date"`
	// LastUpdate is the timestamp of the moment of the last edition of the resource
	LastUpdate int64 `storage:"last_update"`
}

AccountDB is the data struct of the resource in the database

type AccountDBFilter

type AccountDBFilter struct {
	// AccountDB is the data struct of the resource in the database
	AccountDB
	// FilterGroup is a collection of filters
	FilterGroup *persistence.FilterGroup `valid:"optional"`
}

AccountDBFilter to filter lists of resources from the database

func (*AccountDBFilter) AppendFilter

func (filter *AccountDBFilter) AppendFilter(theFilter persistence.Filter)

AppendFilter Append filter.

type AccountID

type AccountID struct {
	// Address is the Ethereum account to interact with the network
	Address string `storage:"address"`
	// ApplicationID the ID of the Application associated to this account
	ApplicationID string `storage:"application_id"`
	// UserID the ID of the User associated to this account
	UserID string `storage:"user_id"`
}

AccountID is the primary key of an Account in the database

type AccountRepositoryInfra

type AccountRepositoryInfra struct {
	// contains filtered or unexported fields
}

func ProvideAccountRepositoryInfra

func ProvideAccountRepositoryInfra(options AccountRepositoryInfraOptions) (*AccountRepositoryInfra, error)

func (*AccountRepositoryInfra) Add

func (*AccountRepositoryInfra) Get

func (repository *AccountRepositoryInfra) Get(ctx context.Context, input AccountID) ([]AccountDB, error)

func (*AccountRepositoryInfra) List

func (repository *AccountRepositoryInfra) List(ctx context.Context, filters AccountDBFilter) ([]AccountDB, error)

func (*AccountRepositoryInfra) Remove

func (*AccountRepositoryInfra) RemoveAllForAddress

type AccountRepositoryInfraOptions

type AccountRepositoryInfraOptions struct {
	GenericStorage persistence.Storage
}

Jump to

Keyboard shortcuts

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