bootstrap

package
v0.0.0-...-4db6afb Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

This package contains the nonodo run function. This is separate from the main package to facilitate testing.

Index

Constants

View Source
const (
	DefaultHttpPort           = 8080
	DefaultRollupsPort        = 5004
	DefaultNamespace          = 10008
	DefaultMaxOpenConnections = 25
	DefaultMaxIdleConnections = 10
	DefaultConnMaxLifetime    = 30 * time.Minute
	DefaultConnMaxIdleTime    = 5 * time.Minute
)

Variables

This section is empty.

Functions

func CreateDBInstance

func CreateDBInstance(opts BootstrapOpts) *sqlx.DB

func NewAbiDecoder

func NewAbiDecoder(abi *abi.ABI)

func NewSupervisorGraphQL

func NewSupervisorGraphQL(opts BootstrapOpts) supervisor.SupervisorWorker

Types

type BootstrapOpts

type BootstrapOpts struct {
	AutoCount          bool
	HttpAddress        string
	HttpPort           int
	ApplicationAddress string
	SqliteFile         string
	DbImplementation   string
	TimeoutWorker      time.Duration
	RawEnabled         bool
}

Options to nonodo.

func NewBootstrapOpts

func NewBootstrapOpts() BootstrapOpts

Create the options struct with default values.

Jump to

Keyboard shortcuts

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