quotes

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuoteEngine

type QuoteEngine interface {
	GetQuoteSql(ctx context.Context) (model.Quote, error)
	GetQuoteById(ctx context.Context, id int) (model.Quote, error)
}

type QuoteEngineImpl added in v1.2.0

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

func NewQuoteEngine

func NewQuoteEngine(connPool model.DbPool, seed1, seed2 uint64) (*QuoteEngineImpl, error)

func (*QuoteEngineImpl) GetQuoteById added in v1.3.0

func (q *QuoteEngineImpl) GetQuoteById(ctx context.Context, id int) (model.Quote, error)

func (*QuoteEngineImpl) GetQuoteSql added in v1.2.0

func (q *QuoteEngineImpl) GetQuoteSql(ctx context.Context) (model.Quote, error)

Jump to

Keyboard shortcuts

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