model

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalMapSlice

func MarshalMapSlice(val map[string][]string) graphql.Marshaler

func MarshalMapString

func MarshalMapString(val map[string]string) graphql.Marshaler

func MarshalTimeDuration

func MarshalTimeDuration(val time.Duration) graphql.Marshaler

func UnmarshalMapSlice

func UnmarshalMapSlice(v interface{}) (map[string][]string, error)

func UnmarshalMapString

func UnmarshalMapString(v interface{}) (map[string]string, error)

func UnmarshalTimeDuration

func UnmarshalTimeDuration(v interface{}) (time.Duration, error)

Types

type ServerInfo

type ServerInfo struct {
	RequestAddress string            `json:"request_address"`
	RequestPort    int               `json:"request_port"`
	WebPort        int               `json:"web_port"`
	ResponseCode   int               `json:"response_code"`
	BuildInfo      map[string]string `json:"build_info"`
	Protocol       string            `json:"protocol"`
}

Jump to

Keyboard shortcuts

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