dbtypes

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoPublic

type DiscoPublic key.DiscoPublic

NodePublic is a wrapper around a key.NodePublic which represents the Tailscale disco key for an agent.

func (DiscoPublic) MarshalJSON

func (n DiscoPublic) MarshalJSON() ([]byte, error)

This is necessary so DiscoPublic can be serialized in JSON loggers.

func (*DiscoPublic) Scan

func (n *DiscoPublic) Scan(value interface{}) error

Scan is so DiscoPublic can be read from the database.

func (DiscoPublic) String

func (n DiscoPublic) String() string

func (DiscoPublic) Value

func (n DiscoPublic) Value() (driver.Value, error)

Value is so DiscoPublic can be inserted into the database.

type NodePublic

type NodePublic key.NodePublic

NodePublic is a wrapper around a key.NodePublic which represents the Wireguard public key for an agent..

func (NodePublic) MarshalJSON

func (n NodePublic) MarshalJSON() ([]byte, error)

This is necessary so NodePublic can be serialized in JSON loggers.

func (*NodePublic) Scan

func (n *NodePublic) Scan(value interface{}) error

Scan is so NodePublic can be read from the database.

func (NodePublic) String

func (n NodePublic) String() string

func (NodePublic) Value

func (n NodePublic) Value() (driver.Value, error)

Value is so NodePublic can be inserted into the database.

Jump to

Keyboard shortcuts

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