dns

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dns contains generated bindings for API file dns.api.

Contents: - 8 messages

Index

Constants

View Source
const (
	APIFile    = "dns"
	APIVersion = "1.0.0"
	VersionCrc = 0x269575cd
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type DNSEnableDisable

type DNSEnableDisable struct {
	Enable uint8 `binapi:"u8,name=enable" json:"enable,omitempty"`
}

DNSEnableDisable defines message 'dns_enable_disable'.

func (*DNSEnableDisable) GetCrcString

func (*DNSEnableDisable) GetCrcString() string

func (*DNSEnableDisable) GetMessageName

func (*DNSEnableDisable) GetMessageName() string

func (*DNSEnableDisable) GetMessageType

func (*DNSEnableDisable) GetMessageType() api.MessageType

func (*DNSEnableDisable) Marshal

func (m *DNSEnableDisable) Marshal(b []byte) ([]byte, error)

func (*DNSEnableDisable) Reset

func (m *DNSEnableDisable) Reset()

func (*DNSEnableDisable) Size

func (m *DNSEnableDisable) Size() (size int)

func (*DNSEnableDisable) Unmarshal

func (m *DNSEnableDisable) Unmarshal(b []byte) error

type DNSEnableDisableReply

type DNSEnableDisableReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

DNSEnableDisableReply defines message 'dns_enable_disable_reply'.

func (*DNSEnableDisableReply) GetCrcString

func (*DNSEnableDisableReply) GetCrcString() string

func (*DNSEnableDisableReply) GetMessageName

func (*DNSEnableDisableReply) GetMessageName() string

func (*DNSEnableDisableReply) GetMessageType

func (*DNSEnableDisableReply) GetMessageType() api.MessageType

func (*DNSEnableDisableReply) Marshal

func (m *DNSEnableDisableReply) Marshal(b []byte) ([]byte, error)

func (*DNSEnableDisableReply) Reset

func (m *DNSEnableDisableReply) Reset()

func (*DNSEnableDisableReply) Size

func (m *DNSEnableDisableReply) Size() (size int)

func (*DNSEnableDisableReply) Unmarshal

func (m *DNSEnableDisableReply) Unmarshal(b []byte) error

type DNSNameServerAddDel

type DNSNameServerAddDel struct {
	IsIP6         uint8  `binapi:"u8,name=is_ip6" json:"is_ip6,omitempty"`
	IsAdd         uint8  `binapi:"u8,name=is_add" json:"is_add,omitempty"`
	ServerAddress []byte `binapi:"u8[16],name=server_address" json:"server_address,omitempty"`
}

DNSNameServerAddDel defines message 'dns_name_server_add_del'.

func (*DNSNameServerAddDel) GetCrcString

func (*DNSNameServerAddDel) GetCrcString() string

func (*DNSNameServerAddDel) GetMessageName

func (*DNSNameServerAddDel) GetMessageName() string

func (*DNSNameServerAddDel) GetMessageType

func (*DNSNameServerAddDel) GetMessageType() api.MessageType

func (*DNSNameServerAddDel) Marshal

func (m *DNSNameServerAddDel) Marshal(b []byte) ([]byte, error)

func (*DNSNameServerAddDel) Reset

func (m *DNSNameServerAddDel) Reset()

func (*DNSNameServerAddDel) Size

func (m *DNSNameServerAddDel) Size() (size int)

func (*DNSNameServerAddDel) Unmarshal

func (m *DNSNameServerAddDel) Unmarshal(b []byte) error

type DNSNameServerAddDelReply

type DNSNameServerAddDelReply struct {
	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}

DNSNameServerAddDelReply defines message 'dns_name_server_add_del_reply'.

func (*DNSNameServerAddDelReply) GetCrcString

func (*DNSNameServerAddDelReply) GetCrcString() string

func (*DNSNameServerAddDelReply) GetMessageName

func (*DNSNameServerAddDelReply) GetMessageName() string

func (*DNSNameServerAddDelReply) GetMessageType

func (*DNSNameServerAddDelReply) GetMessageType() api.MessageType

func (*DNSNameServerAddDelReply) Marshal

func (m *DNSNameServerAddDelReply) Marshal(b []byte) ([]byte, error)

func (*DNSNameServerAddDelReply) Reset

func (m *DNSNameServerAddDelReply) Reset()

func (*DNSNameServerAddDelReply) Size

func (m *DNSNameServerAddDelReply) Size() (size int)

func (*DNSNameServerAddDelReply) Unmarshal

func (m *DNSNameServerAddDelReply) Unmarshal(b []byte) error

type DNSResolveIP

type DNSResolveIP struct {
	IsIP6   uint8  `binapi:"u8,name=is_ip6" json:"is_ip6,omitempty"`
	Address []byte `binapi:"u8[16],name=address" json:"address,omitempty"`
}

DNSResolveIP defines message 'dns_resolve_ip'.

func (*DNSResolveIP) GetCrcString

func (*DNSResolveIP) GetCrcString() string

func (*DNSResolveIP) GetMessageName

func (*DNSResolveIP) GetMessageName() string

func (*DNSResolveIP) GetMessageType

func (*DNSResolveIP) GetMessageType() api.MessageType

func (*DNSResolveIP) Marshal

func (m *DNSResolveIP) Marshal(b []byte) ([]byte, error)

func (*DNSResolveIP) Reset

func (m *DNSResolveIP) Reset()

func (*DNSResolveIP) Size

func (m *DNSResolveIP) Size() (size int)

func (*DNSResolveIP) Unmarshal

func (m *DNSResolveIP) Unmarshal(b []byte) error

type DNSResolveIPReply

type DNSResolveIPReply struct {
	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	Name   []byte `binapi:"u8[256],name=name" json:"name,omitempty"`
}

DNSResolveIPReply defines message 'dns_resolve_ip_reply'.

func (*DNSResolveIPReply) GetCrcString

func (*DNSResolveIPReply) GetCrcString() string

func (*DNSResolveIPReply) GetMessageName

func (*DNSResolveIPReply) GetMessageName() string

func (*DNSResolveIPReply) GetMessageType

func (*DNSResolveIPReply) GetMessageType() api.MessageType

func (*DNSResolveIPReply) Marshal

func (m *DNSResolveIPReply) Marshal(b []byte) ([]byte, error)

func (*DNSResolveIPReply) Reset

func (m *DNSResolveIPReply) Reset()

func (*DNSResolveIPReply) Size

func (m *DNSResolveIPReply) Size() (size int)

func (*DNSResolveIPReply) Unmarshal

func (m *DNSResolveIPReply) Unmarshal(b []byte) error

type DNSResolveName

type DNSResolveName struct {
	Name []byte `binapi:"u8[256],name=name" json:"name,omitempty"`
}

DNSResolveName defines message 'dns_resolve_name'.

func (*DNSResolveName) GetCrcString

func (*DNSResolveName) GetCrcString() string

func (*DNSResolveName) GetMessageName

func (*DNSResolveName) GetMessageName() string

func (*DNSResolveName) GetMessageType

func (*DNSResolveName) GetMessageType() api.MessageType

func (*DNSResolveName) Marshal

func (m *DNSResolveName) Marshal(b []byte) ([]byte, error)

func (*DNSResolveName) Reset

func (m *DNSResolveName) Reset()

func (*DNSResolveName) Size

func (m *DNSResolveName) Size() (size int)

func (*DNSResolveName) Unmarshal

func (m *DNSResolveName) Unmarshal(b []byte) error

type DNSResolveNameReply

type DNSResolveNameReply struct {
	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
	IP4Set     uint8  `binapi:"u8,name=ip4_set" json:"ip4_set,omitempty"`
	IP6Set     uint8  `binapi:"u8,name=ip6_set" json:"ip6_set,omitempty"`
	IP4Address []byte `binapi:"u8[4],name=ip4_address" json:"ip4_address,omitempty"`
	IP6Address []byte `binapi:"u8[16],name=ip6_address" json:"ip6_address,omitempty"`
}

DNSResolveNameReply defines message 'dns_resolve_name_reply'.

func (*DNSResolveNameReply) GetCrcString

func (*DNSResolveNameReply) GetCrcString() string

func (*DNSResolveNameReply) GetMessageName

func (*DNSResolveNameReply) GetMessageName() string

func (*DNSResolveNameReply) GetMessageType

func (*DNSResolveNameReply) GetMessageType() api.MessageType

func (*DNSResolveNameReply) Marshal

func (m *DNSResolveNameReply) Marshal(b []byte) ([]byte, error)

func (*DNSResolveNameReply) Reset

func (m *DNSResolveNameReply) Reset()

func (*DNSResolveNameReply) Size

func (m *DNSResolveNameReply) Size() (size int)

func (*DNSResolveNameReply) Unmarshal

func (m *DNSResolveNameReply) Unmarshal(b []byte) error

type RPCService

type RPCService interface {
	DNSEnableDisable(ctx context.Context, in *DNSEnableDisable) (*DNSEnableDisableReply, error)
	DNSNameServerAddDel(ctx context.Context, in *DNSNameServerAddDel) (*DNSNameServerAddDelReply, error)
	DNSResolveIP(ctx context.Context, in *DNSResolveIP) (*DNSResolveIPReply, error)
	DNSResolveName(ctx context.Context, in *DNSResolveName) (*DNSResolveNameReply, error)
}

RPCService defines RPC service dns.

func NewServiceClient

func NewServiceClient(conn api.Connection) RPCService

Jump to

Keyboard shortcuts

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