Documentation ¶
Index ¶
- Variables
- func RegisterDNSMasqManagerServer(s *grpc.Server, srv DNSMasqManagerServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetHostname() string
- func (m *Address) GetIpaddr() string
- func (m *Address) GetMacaddr() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type AddressReply
- func (*AddressReply) Descriptor() ([]byte, []int)
- func (m *AddressReply) GetAddr() *Address
- func (m *AddressReply) GetKey() Key
- func (m *AddressReply) GetMatch() Match
- func (*AddressReply) ProtoMessage()
- func (m *AddressReply) Reset()
- func (m *AddressReply) String() string
- func (m *AddressReply) XXX_DiscardUnknown()
- func (m *AddressReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressReply) XXX_Merge(src proto.Message)
- func (m *AddressReply) XXX_Size() int
- func (m *AddressReply) XXX_Unmarshal(b []byte) error
- type AddressRequest
- func (*AddressRequest) Descriptor() ([]byte, []int)
- func (m *AddressRequest) GetAddr() *Address
- func (m *AddressRequest) GetKey() Key
- func (*AddressRequest) ProtoMessage()
- func (m *AddressRequest) Reset()
- func (m *AddressRequest) String() string
- func (m *AddressRequest) XXX_DiscardUnknown()
- func (m *AddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressRequest) XXX_Merge(src proto.Message)
- func (m *AddressRequest) XXX_Size() int
- func (m *AddressRequest) XXX_Unmarshal(b []byte) error
- type DNSMasqManagerClient
- type DNSMasqManagerServer
- type Error
- type Key
- type Match
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) GetHostname ¶
func (*Address) GetMacaddr ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
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.
Click to show internal directories.
Click to hide internal directories.