dnsmasqmgr

package
v0.0.0-...-cfe5e5d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error_name = map[int32]string{
	0: "SUCCESS",
	1: "NOTFOUND",
	2: "DUPLICATE",
	3: "MISMATCH",
}
View Source
var Error_value = map[string]int32{
	"SUCCESS":   0,
	"NOTFOUND":  1,
	"DUPLICATE": 2,
	"MISMATCH":  3,
}
View Source
var Key_name = map[int32]string{
	0: "HOSTNAME",
	1: "MACADDR",
	2: "IPADDR",
}
View Source
var Key_value = map[string]int32{
	"HOSTNAME": 0,
	"MACADDR":  1,
	"IPADDR":   2,
}
View Source
var Match_name = map[int32]string{
	0: "NONE",
	1: "PARTIAL",
	2: "FULL",
}
View Source
var Match_value = map[string]int32{
	"NONE":    0,
	"PARTIAL": 1,
	"FULL":    2,
}

Functions

func RegisterDNSMasqManagerServer

func RegisterDNSMasqManagerServer(s *grpc.Server, srv DNSMasqManagerServer)

Types

type Address

type Address struct {
	Hostname             string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Macaddr              string   `protobuf:"bytes,2,opt,name=macaddr,proto3" json:"macaddr,omitempty"`
	Ipaddr               string   `protobuf:"bytes,3,opt,name=ipaddr,proto3" json:"ipaddr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Address) Descriptor

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

func (*Address) GetHostname

func (m *Address) GetHostname() string

func (*Address) GetIpaddr

func (m *Address) GetIpaddr() string

func (*Address) GetMacaddr

func (m *Address) GetMacaddr() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

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

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

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

type AddressReply

type AddressReply struct {
	Key                  Key      `protobuf:"varint,1,opt,name=key,proto3,enum=dnsmasqmgr.Key" json:"key,omitempty"`
	Match                Match    `protobuf:"varint,2,opt,name=match,proto3,enum=dnsmasqmgr.Match" json:"match,omitempty"`
	Addr                 *Address `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddressReply) Descriptor

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

func (*AddressReply) GetAddr

func (m *AddressReply) GetAddr() *Address

func (*AddressReply) GetKey

func (m *AddressReply) GetKey() Key

func (*AddressReply) GetMatch

func (m *AddressReply) GetMatch() Match

func (*AddressReply) ProtoMessage

func (*AddressReply) ProtoMessage()

func (*AddressReply) Reset

func (m *AddressReply) Reset()

func (*AddressReply) String

func (m *AddressReply) String() string

func (*AddressReply) XXX_DiscardUnknown

func (m *AddressReply) XXX_DiscardUnknown()

func (*AddressReply) XXX_Marshal

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

func (*AddressReply) XXX_Merge

func (m *AddressReply) XXX_Merge(src proto.Message)

func (*AddressReply) XXX_Size

func (m *AddressReply) XXX_Size() int

func (*AddressReply) XXX_Unmarshal

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

type AddressRequest

type AddressRequest struct {
	Key                  Key      `protobuf:"varint,1,opt,name=key,proto3,enum=dnsmasqmgr.Key" json:"key,omitempty"`
	Addr                 *Address `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddressRequest) Descriptor

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

func (*AddressRequest) GetAddr

func (m *AddressRequest) GetAddr() *Address

func (*AddressRequest) GetKey

func (m *AddressRequest) GetKey() Key

func (*AddressRequest) ProtoMessage

func (*AddressRequest) ProtoMessage()

func (*AddressRequest) Reset

func (m *AddressRequest) Reset()

func (*AddressRequest) String

func (m *AddressRequest) String() string

func (*AddressRequest) XXX_DiscardUnknown

func (m *AddressRequest) XXX_DiscardUnknown()

func (*AddressRequest) XXX_Marshal

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

func (*AddressRequest) XXX_Merge

func (m *AddressRequest) XXX_Merge(src proto.Message)

func (*AddressRequest) XXX_Size

func (m *AddressRequest) XXX_Size() int

func (*AddressRequest) XXX_Unmarshal

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

type DNSMasqManagerClient

type DNSMasqManagerClient interface {
	RequestAddress(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*AddressReply, error)
	DeleteAddress(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*AddressReply, error)
	LookupAddress(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*AddressReply, error)
}

DNSMasqManagerClient is the client API for DNSMasqManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDNSMasqManagerClient

func NewDNSMasqManagerClient(cc *grpc.ClientConn) DNSMasqManagerClient

type DNSMasqManagerServer

type DNSMasqManagerServer interface {
	RequestAddress(context.Context, *AddressRequest) (*AddressReply, error)
	DeleteAddress(context.Context, *AddressRequest) (*AddressReply, error)
	LookupAddress(context.Context, *AddressRequest) (*AddressReply, error)
}

DNSMasqManagerServer is the server API for DNSMasqManager service.

type Error

type Error int32
const (
	Error_SUCCESS   Error = 0
	Error_NOTFOUND  Error = 1
	Error_DUPLICATE Error = 2
	Error_MISMATCH  Error = 3
)

func (Error) EnumDescriptor

func (Error) EnumDescriptor() ([]byte, []int)

func (Error) String

func (x Error) String() string

type Key

type Key int32
const (
	Key_HOSTNAME Key = 0
	Key_MACADDR  Key = 1
	Key_IPADDR   Key = 2
)

func (Key) EnumDescriptor

func (Key) EnumDescriptor() ([]byte, []int)

func (Key) String

func (x Key) String() string

type Match

type Match int32
const (
	Match_NONE    Match = 0
	Match_PARTIAL Match = 1
	Match_FULL    Match = 2
)

func (Match) EnumDescriptor

func (Match) EnumDescriptor() ([]byte, []int)

func (Match) String

func (x Match) String() string

Jump to

Keyboard shortcuts

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