repository

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinHandler

func GinHandler(s *Service) gin.HandlerFunc

Types

type Service

type Service struct {
	DB *gorm.DB
}

func Configure

func Configure() (service Service, err error)

func (*Service) AutoMigrate

func (s *Service) AutoMigrate()

func (*Service) FindCurrencyFromTo

func (s *Service) FindCurrencyFromTo(c chan []models.Conversion, currencyIDFrom uint64, currencyIDTo uint64)

func (*Service) GetAllCurrency

func (s *Service) GetAllCurrency() (result []models.Currency, err error)

func (*Service) InsertConversion

func (s *Service) InsertConversion(conversion models.Conversion) (result models.Conversion, err error)

func (*Service) InsertCurrency

func (s *Service) InsertCurrency(currency models.Currency) (result models.Currency, err error)

Jump to

Keyboard shortcuts

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