net

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 106

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAddress

type IPAddress struct {
	// Types that are valid to be assigned to Ip:
	//	*IPAddress_Ipv4
	//	*IPAddress_Ipv6
	Ip                   isIPAddress_Ip `protobuf_oneof:"ip"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*IPAddress) Descriptor

func (*IPAddress) Descriptor() ([]byte, []int)

func (*IPAddress) GetIp

func (m *IPAddress) GetIp() isIPAddress_Ip

func (*IPAddress) GetIpv4

func (m *IPAddress) GetIpv4() uint32

func (*IPAddress) GetIpv6

func (m *IPAddress) GetIpv6() *IPv6

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) Reset

func (m *IPAddress) Reset()

func (*IPAddress) String

func (m *IPAddress) String() string

func (*IPAddress) XXX_DiscardUnknown added in v0.1.2

func (m *IPAddress) XXX_DiscardUnknown()

func (*IPAddress) XXX_Marshal added in v0.1.2

func (m *IPAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPAddress) XXX_Merge added in v0.1.2

func (dst *IPAddress) XXX_Merge(src proto.Message)

func (*IPAddress) XXX_OneofFuncs

func (*IPAddress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*IPAddress) XXX_Size added in v0.1.2

func (m *IPAddress) XXX_Size() int

func (*IPAddress) XXX_Unmarshal added in v0.1.2

func (m *IPAddress) XXX_Unmarshal(b []byte) error

type IPAddress_Ipv4

type IPAddress_Ipv4 struct {
	Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,proto3,oneof"`
}

type IPAddress_Ipv6

type IPAddress_Ipv6 struct {
	Ipv6 *IPv6 `protobuf:"bytes,2,opt,name=ipv6,proto3,oneof"`
}

type IPv6

type IPv6 struct {
	First                uint64   `protobuf:"fixed64,1,opt,name=first,proto3" json:"first,omitempty"`
	Last                 uint64   `protobuf:"fixed64,2,opt,name=last,proto3" json:"last,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IPv6) Descriptor

func (*IPv6) Descriptor() ([]byte, []int)

func (*IPv6) GetFirst

func (m *IPv6) GetFirst() uint64

func (*IPv6) GetLast

func (m *IPv6) GetLast() uint64

func (*IPv6) ProtoMessage

func (*IPv6) ProtoMessage()

func (*IPv6) Reset

func (m *IPv6) Reset()

func (*IPv6) String

func (m *IPv6) String() string

func (*IPv6) XXX_DiscardUnknown added in v0.1.2

func (m *IPv6) XXX_DiscardUnknown()

func (*IPv6) XXX_Marshal added in v0.1.2

func (m *IPv6) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPv6) XXX_Merge added in v0.1.2

func (dst *IPv6) XXX_Merge(src proto.Message)

func (*IPv6) XXX_Size added in v0.1.2

func (m *IPv6) XXX_Size() int

func (*IPv6) XXX_Unmarshal added in v0.1.2

func (m *IPv6) XXX_Unmarshal(b []byte) error

type TcpAddress

type TcpAddress struct {
	Ip                   *IPAddress `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port                 uint32     `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*TcpAddress) Descriptor

func (*TcpAddress) Descriptor() ([]byte, []int)

func (*TcpAddress) GetIp

func (m *TcpAddress) GetIp() *IPAddress

func (*TcpAddress) GetPort

func (m *TcpAddress) GetPort() uint32

func (*TcpAddress) ProtoMessage

func (*TcpAddress) ProtoMessage()

func (*TcpAddress) Reset

func (m *TcpAddress) Reset()

func (*TcpAddress) String

func (m *TcpAddress) String() string

func (*TcpAddress) XXX_DiscardUnknown added in v0.1.2

func (m *TcpAddress) XXX_DiscardUnknown()

func (*TcpAddress) XXX_Marshal added in v0.1.2

func (m *TcpAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TcpAddress) XXX_Merge added in v0.1.2

func (dst *TcpAddress) XXX_Merge(src proto.Message)

func (*TcpAddress) XXX_Size added in v0.1.2

func (m *TcpAddress) XXX_Size() int

func (*TcpAddress) XXX_Unmarshal added in v0.1.2

func (m *TcpAddress) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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