graphql

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP string

IP 地址类型,如 192.168.0.1 或 3FFE:FFFF:0:CD30::/64

func (IP) MarshalGQL

func (ip IP) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*IP) UnmarshalGQL

func (ip *IP) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type IPRange

type IPRange string

IP 端类型,如 192.168.1.1 或 192.168.1.100-192.168.1.110

func (IPRange) MarshalGQL

func (iprange IPRange) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*IPRange) UnmarshalGQL

func (iprange *IPRange) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type MAC

type MAC string

MAC 地址类型,如 FE-FC-FE-86-DC-83

func (MAC) MarshalGQL

func (mac MAC) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*MAC) UnmarshalGQL

func (mac *MAC) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

Jump to

Keyboard shortcuts

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