pgnet

package
v0.0.0-...-a2243ee Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDR

type CIDR struct {
	*net.IPNet
}

CIDR is an net.IPNet that supports marshalling and scanning with a Postgresql CIDR column.

func (CIDR) MarshalJSON

func (c CIDR) MarshalJSON() ([]byte, error)

func (*CIDR) Scan

func (c *CIDR) Scan(src interface{}) error

func (CIDR) Value

func (c CIDR) Value() (driver.Value, error)

type INET

type INET struct {
	net.IP
}

INET is an net.IP that supports marshalling and scanning with a Postgresql INET column.

func (INET) MarshalJSON

func (i INET) MarshalJSON() ([]byte, error)

func (*INET) Scan

func (i *INET) Scan(src interface{}) error

func (INET) Value

func (i INET) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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