cache

package
v0.0.0-...-7c6986d Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCache

type RedisCache struct{}

func (RedisCache) InitCache

func (rediscache RedisCache) InitCache() (redis.Conn, error)

type TransactionCache

type TransactionCache struct {
	Email         string    `json:"Email"`
	DonationType  string    `json:"DonationType"`
	PaymentMethod string    `json:"PaymentMethod"`
	DateCreated   time.Time `json:"DateCreated"`
	Transactionid int       `json:"Transactionid"`
	Firstname     string    `json:"Firstname"`
	Lastname      string    `json:"Lastname"`
	Amount        float64   `json:"Amount"`
	Address       string    `json:"Address"`
	Phone         string    `json:"Phone"`
	DateDonated   time.Time `json:"DateDonated"`
}

type TransactionsCache

type TransactionsCache struct {
	Transactions []TransactionCache
	FundRaiser   string
}

func (TransactionsCache) GetAllTransactionsByFundRaiser

func (transactionscache TransactionsCache) GetAllTransactionsByFundRaiser(fundraiser string) (TransactionsCache, error)

func (TransactionsCache) SetTransactionsByFundRaiser

func (transactions TransactionsCache) SetTransactionsByFundRaiser() error

Jump to

Keyboard shortcuts

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