services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Baseball

type Baseball struct {
	ID   *uint `gorm:"primary_key"`
	Line *float32
}

type Football

type Football struct {
	ID   *uint `gorm:"primary_key"`
	Line *float32
}

type Services

type Services struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func NewServices

func NewServices(cfgs ...ServicesConfig) (*Services, error)

func (*Services) Close

func (s *Services) Close()

func (*Services) CloseStorage

func (s *Services) CloseStorage()

type ServicesConfig

type ServicesConfig func(*Services) error

func WithGorm

func WithGorm(dialect, connectionInfo string) ServicesConfig

func WithLogMode

func WithLogMode(mode bool) ServicesConfig

func WithSetSchema

func WithSetSchema(mode bool) ServicesConfig

type Soccer

type Soccer struct {
	ID   *uint `gorm:"primary_key"`
	Line *float32
}

Jump to

Keyboard shortcuts

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