networkx

package
v0.0.470 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 13 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrations embed.FS

Migrations of the network manager. Apply by merging with your local migrations using fsx.Merge() and then passing all to the migration box.

Functions

func AddressIsUnixSocket added in v0.0.221

func AddressIsUnixSocket(address string) bool

func MakeListener added in v0.0.221

func MakeListener(address string, socketPermission *configx.UnixPermission) (net.Listener, error)

Types

type Manager

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

func NewManager

func NewManager(
	c *pop.Connection,
	l *logrusx.Logger,
	t *otelx.Tracer,
) *Manager

func (*Manager) Determine

func (m *Manager) Determine(ctx context.Context) (*Network, error)

func (*Manager) MigrateUp deprecated

func (m *Manager) MigrateUp(ctx context.Context) error

MigrateUp applies pending up migrations.

Deprecated: use fsx.Merge() instead to merge your local migrations with the ones exported here

type Network

type Network struct {
	ID uuid.UUID `json:"id" db:"id"`

	// CreatedAt is a helper struct field for gobuffalo.pop.
	CreatedAt time.Time `json:"-" db:"created_at"`

	// UpdatedAt is a helper struct field for gobuffalo.pop.
	UpdatedAt time.Time `json:"-" db:"updated_at"`
}

func NewNetwork

func NewNetwork() *Network

func (Network) TableName

func (p Network) TableName() string

Jump to

Keyboard shortcuts

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