storage

package
v0.0.0-...-2d7adcb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Db              *Db
	ScanApiEndpoint string
	ScanApiKey      string
	RpcWsEndpoint   string
}

type Db

type Db struct {
	User     string
	Password string
	Database string
	Host     string
	Port     int
}

type Service

type Service struct {
	Db     *gorm.DB
	Config *Config
	// contains filtered or unexported fields
}

func NewService

func NewService(logger *zap.SugaredLogger) *Service

func (*Service) Start

func (s *Service) Start()

Jump to

Keyboard shortcuts

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