Documentation
¶
Index ¶
- func RegisterWireguardServer(s *grpc.Server, srv WireguardServer)
- type AddPReq
- func (*AddPReq) Descriptor() ([]byte, []int)
- func (m *AddPReq) GetAllowedIPs() string
- func (m *AddPReq) GetNic() string
- func (m *AddPReq) GetPublicKey() string
- func (*AddPReq) ProtoMessage()
- func (m *AddPReq) Reset()
- func (m *AddPReq) String() string
- func (m *AddPReq) XXX_DiscardUnknown()
- func (m *AddPReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddPReq) XXX_Merge(src proto.Message)
- func (m *AddPReq) XXX_Size() int
- func (m *AddPReq) XXX_Unmarshal(b []byte) error
- type AddPResp
- func (*AddPResp) Descriptor() ([]byte, []int)
- func (m *AddPResp) GetMessage() string
- func (*AddPResp) ProtoMessage()
- func (m *AddPResp) Reset()
- func (m *AddPResp) String() string
- func (m *AddPResp) XXX_DiscardUnknown()
- func (m *AddPResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddPResp) XXX_Merge(src proto.Message)
- func (m *AddPResp) XXX_Size() int
- func (m *AddPResp) XXX_Unmarshal(b []byte) error
- type DelPReq
- func (*DelPReq) Descriptor() ([]byte, []int)
- func (m *DelPReq) GetIpAddress() string
- func (m *DelPReq) GetPeerPublicKey() string
- func (*DelPReq) ProtoMessage()
- func (m *DelPReq) Reset()
- func (m *DelPReq) String() string
- func (m *DelPReq) XXX_DiscardUnknown()
- func (m *DelPReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelPReq) XXX_Merge(src proto.Message)
- func (m *DelPReq) XXX_Size() int
- func (m *DelPReq) XXX_Unmarshal(b []byte) error
- type DelPResp
- func (*DelPResp) Descriptor() ([]byte, []int)
- func (m *DelPResp) GetMessage() string
- func (*DelPResp) ProtoMessage()
- func (m *DelPResp) Reset()
- func (m *DelPResp) String() string
- func (m *DelPResp) XXX_DiscardUnknown()
- func (m *DelPResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelPResp) XXX_Merge(src proto.Message)
- func (m *DelPResp) XXX_Size() int
- func (m *DelPResp) XXX_Unmarshal(b []byte) error
- type IReq
- func (*IReq) Descriptor() ([]byte, []int)
- func (m *IReq) GetAddress() string
- func (m *IReq) GetEth() string
- func (m *IReq) GetIName() string
- func (m *IReq) GetListenPort() uint32
- func (m *IReq) GetPrivateKey() string
- func (m *IReq) GetSaveConfig() bool
- func (*IReq) ProtoMessage()
- func (m *IReq) Reset()
- func (m *IReq) String() string
- func (m *IReq) XXX_DiscardUnknown()
- func (m *IReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IReq) XXX_Merge(src proto.Message)
- func (m *IReq) XXX_Size() int
- func (m *IReq) XXX_Unmarshal(b []byte) error
- type IResp
- func (*IResp) Descriptor() ([]byte, []int)
- func (m *IResp) GetMessage() string
- func (*IResp) ProtoMessage()
- func (m *IResp) Reset()
- func (m *IResp) String() string
- func (m *IResp) XXX_DiscardUnknown()
- func (m *IResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IResp) XXX_Merge(src proto.Message)
- func (m *IResp) XXX_Size() int
- func (m *IResp) XXX_Unmarshal(b []byte) error
- type ListPeersReq
- func (*ListPeersReq) Descriptor() ([]byte, []int)
- func (m *ListPeersReq) GetError() string
- func (m *ListPeersReq) GetNicname() string
- func (*ListPeersReq) ProtoMessage()
- func (m *ListPeersReq) Reset()
- func (m *ListPeersReq) String() string
- func (m *ListPeersReq) XXX_DiscardUnknown()
- func (m *ListPeersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPeersReq) XXX_Merge(src proto.Message)
- func (m *ListPeersReq) XXX_Size() int
- func (m *ListPeersReq) XXX_Unmarshal(b []byte) error
- type ListPeersResp
- func (*ListPeersResp) Descriptor() ([]byte, []int)
- func (m *ListPeersResp) GetResponse() string
- func (*ListPeersResp) ProtoMessage()
- func (m *ListPeersResp) Reset()
- func (m *ListPeersResp) String() string
- func (m *ListPeersResp) XXX_DiscardUnknown()
- func (m *ListPeersResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPeersResp) XXX_Merge(src proto.Message)
- func (m *ListPeersResp) XXX_Size() int
- func (m *ListPeersResp) XXX_Unmarshal(b []byte) error
- type ManageNICReq
- func (*ManageNICReq) Descriptor() ([]byte, []int)
- func (m *ManageNICReq) GetCmd() string
- func (m *ManageNICReq) GetNic() string
- func (*ManageNICReq) ProtoMessage()
- func (m *ManageNICReq) Reset()
- func (m *ManageNICReq) String() string
- func (m *ManageNICReq) XXX_DiscardUnknown()
- func (m *ManageNICReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManageNICReq) XXX_Merge(src proto.Message)
- func (m *ManageNICReq) XXX_Size() int
- func (m *ManageNICReq) XXX_Unmarshal(b []byte) error
- type ManageNICResp
- func (*ManageNICResp) Descriptor() ([]byte, []int)
- func (m *ManageNICResp) GetMessage() string
- func (*ManageNICResp) ProtoMessage()
- func (m *ManageNICResp) Reset()
- func (m *ManageNICResp) String() string
- func (m *ManageNICResp) XXX_DiscardUnknown()
- func (m *ManageNICResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManageNICResp) XXX_Merge(src proto.Message)
- func (m *ManageNICResp) XXX_Size() int
- func (m *ManageNICResp) XXX_Unmarshal(b []byte) error
- type NICInfoReq
- func (*NICInfoReq) Descriptor() ([]byte, []int)
- func (m *NICInfoReq) GetInterface() string
- func (*NICInfoReq) ProtoMessage()
- func (m *NICInfoReq) Reset()
- func (m *NICInfoReq) String() string
- func (m *NICInfoReq) XXX_DiscardUnknown()
- func (m *NICInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NICInfoReq) XXX_Merge(src proto.Message)
- func (m *NICInfoReq) XXX_Size() int
- func (m *NICInfoReq) XXX_Unmarshal(b []byte) error
- type NICInfoResp
- func (*NICInfoResp) Descriptor() ([]byte, []int)
- func (m *NICInfoResp) GetMessage() string
- func (*NICInfoResp) ProtoMessage()
- func (m *NICInfoResp) Reset()
- func (m *NICInfoResp) String() string
- func (m *NICInfoResp) XXX_DiscardUnknown()
- func (m *NICInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NICInfoResp) XXX_Merge(src proto.Message)
- func (m *NICInfoResp) XXX_Size() int
- func (m *NICInfoResp) XXX_Unmarshal(b []byte) error
- type PeerStatusReq
- func (*PeerStatusReq) Descriptor() ([]byte, []int)
- func (m *PeerStatusReq) GetNicName() string
- func (m *PeerStatusReq) GetPublicKey() string
- func (*PeerStatusReq) ProtoMessage()
- func (m *PeerStatusReq) Reset()
- func (m *PeerStatusReq) String() string
- func (m *PeerStatusReq) XXX_DiscardUnknown()
- func (m *PeerStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerStatusReq) XXX_Merge(src proto.Message)
- func (m *PeerStatusReq) XXX_Size() int
- func (m *PeerStatusReq) XXX_Unmarshal(b []byte) error
- type PeerStatusResp
- func (*PeerStatusResp) Descriptor() ([]byte, []int)
- func (m *PeerStatusResp) GetStatus() bool
- func (*PeerStatusResp) ProtoMessage()
- func (m *PeerStatusResp) Reset()
- func (m *PeerStatusResp) String() string
- func (m *PeerStatusResp) XXX_DiscardUnknown()
- func (m *PeerStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerStatusResp) XXX_Merge(src proto.Message)
- func (m *PeerStatusResp) XXX_Size() int
- func (m *PeerStatusResp) XXX_Unmarshal(b []byte) error
- type PrivKeyReq
- func (*PrivKeyReq) Descriptor() ([]byte, []int)
- func (m *PrivKeyReq) GetPrivateKeyName() string
- func (*PrivKeyReq) ProtoMessage()
- func (m *PrivKeyReq) Reset()
- func (m *PrivKeyReq) String() string
- func (m *PrivKeyReq) XXX_DiscardUnknown()
- func (m *PrivKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrivKeyReq) XXX_Merge(src proto.Message)
- func (m *PrivKeyReq) XXX_Size() int
- func (m *PrivKeyReq) XXX_Unmarshal(b []byte) error
- type PrivKeyResp
- func (*PrivKeyResp) Descriptor() ([]byte, []int)
- func (m *PrivKeyResp) GetMessage() string
- func (*PrivKeyResp) ProtoMessage()
- func (m *PrivKeyResp) Reset()
- func (m *PrivKeyResp) String() string
- func (m *PrivKeyResp) XXX_DiscardUnknown()
- func (m *PrivKeyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrivKeyResp) XXX_Merge(src proto.Message)
- func (m *PrivKeyResp) XXX_Size() int
- func (m *PrivKeyResp) XXX_Unmarshal(b []byte) error
- type PubKeyReq
- func (*PubKeyReq) Descriptor() ([]byte, []int)
- func (m *PubKeyReq) GetPrivKeyName() string
- func (m *PubKeyReq) GetPubKeyName() string
- func (*PubKeyReq) ProtoMessage()
- func (m *PubKeyReq) Reset()
- func (m *PubKeyReq) String() string
- func (m *PubKeyReq) XXX_DiscardUnknown()
- func (m *PubKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKeyReq) XXX_Merge(src proto.Message)
- func (m *PubKeyReq) XXX_Size() int
- func (m *PubKeyReq) XXX_Unmarshal(b []byte) error
- type PubKeyResp
- func (*PubKeyResp) Descriptor() ([]byte, []int)
- func (m *PubKeyResp) GetMessage() string
- func (*PubKeyResp) ProtoMessage()
- func (m *PubKeyResp) Reset()
- func (m *PubKeyResp) String() string
- func (m *PubKeyResp) XXX_DiscardUnknown()
- func (m *PubKeyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKeyResp) XXX_Merge(src proto.Message)
- func (m *PubKeyResp) XXX_Size() int
- func (m *PubKeyResp) XXX_Unmarshal(b []byte) error
- type UnimplementedWireguardServer
- func (*UnimplementedWireguardServer) AddPeer(ctx context.Context, req *AddPReq) (*AddPResp, error)
- func (*UnimplementedWireguardServer) DelPeer(ctx context.Context, req *DelPReq) (*DelPResp, error)
- func (*UnimplementedWireguardServer) GenPrivateKey(ctx context.Context, req *PrivKeyReq) (*PrivKeyResp, error)
- func (*UnimplementedWireguardServer) GenPublicKey(ctx context.Context, req *PubKeyReq) (*PubKeyResp, error)
- func (*UnimplementedWireguardServer) GetNICInfo(ctx context.Context, req *NICInfoReq) (*NICInfoResp, error)
- func (*UnimplementedWireguardServer) GetPeerStatus(ctx context.Context, req *PeerStatusReq) (*PeerStatusResp, error)
- func (*UnimplementedWireguardServer) GetPrivateKey(ctx context.Context, req *PrivKeyReq) (*PrivKeyResp, error)
- func (*UnimplementedWireguardServer) GetPublicKey(ctx context.Context, req *PubKeyReq) (*PubKeyResp, error)
- func (*UnimplementedWireguardServer) InitializeI(ctx context.Context, req *IReq) (*IResp, error)
- func (*UnimplementedWireguardServer) ListPeers(ctx context.Context, req *ListPeersReq) (*ListPeersResp, error)
- func (*UnimplementedWireguardServer) ManageNIC(ctx context.Context, req *ManageNICReq) (*ManageNICResp, error)
- type WireguardClient
- type WireguardServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWireguardServer ¶
func RegisterWireguardServer(s *grpc.Server, srv WireguardServer)
Types ¶
type AddPReq ¶
type AddPReq struct { Nic string `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"` AllowedIPs string `protobuf:"bytes,2,opt,name=allowedIPs,proto3" json:"allowedIPs,omitempty"` PublicKey string `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddPReq) Descriptor ¶
func (*AddPReq) GetAllowedIPs ¶
func (*AddPReq) GetPublicKey ¶
func (*AddPReq) ProtoMessage ¶
func (*AddPReq) ProtoMessage()
func (*AddPReq) XXX_DiscardUnknown ¶
func (m *AddPReq) XXX_DiscardUnknown()
func (*AddPReq) XXX_Marshal ¶
func (*AddPReq) XXX_Unmarshal ¶
type AddPResp ¶
type AddPResp struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddPResp) Descriptor ¶
func (*AddPResp) GetMessage ¶
func (*AddPResp) ProtoMessage ¶
func (*AddPResp) ProtoMessage()
func (*AddPResp) XXX_DiscardUnknown ¶
func (m *AddPResp) XXX_DiscardUnknown()
func (*AddPResp) XXX_Marshal ¶
func (*AddPResp) XXX_Unmarshal ¶
type DelPReq ¶
type DelPReq struct { PeerPublicKey string `protobuf:"bytes,1,opt,name=peerPublicKey,proto3" json:"peerPublicKey,omitempty"` IpAddress string `protobuf:"bytes,2,opt,name=ipAddress,proto3" json:"ipAddress,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DelPReq) Descriptor ¶
func (*DelPReq) GetIpAddress ¶
func (*DelPReq) GetPeerPublicKey ¶
func (*DelPReq) ProtoMessage ¶
func (*DelPReq) ProtoMessage()
func (*DelPReq) XXX_DiscardUnknown ¶
func (m *DelPReq) XXX_DiscardUnknown()
func (*DelPReq) XXX_Marshal ¶
func (*DelPReq) XXX_Unmarshal ¶
type DelPResp ¶
type DelPResp struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DelPResp) Descriptor ¶
func (*DelPResp) GetMessage ¶
func (*DelPResp) ProtoMessage ¶
func (*DelPResp) ProtoMessage()
func (*DelPResp) XXX_DiscardUnknown ¶
func (m *DelPResp) XXX_DiscardUnknown()
func (*DelPResp) XXX_Marshal ¶
func (*DelPResp) XXX_Unmarshal ¶
type IReq ¶
type IReq struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` ListenPort uint32 `protobuf:"varint,2,opt,name=listenPort,proto3" json:"listenPort,omitempty"` SaveConfig bool `protobuf:"varint,3,opt,name=saveConfig,proto3" json:"saveConfig,omitempty"` PrivateKey string `protobuf:"bytes,4,opt,name=privateKey,proto3" json:"privateKey,omitempty"` Eth string `protobuf:"bytes,5,opt,name=eth,proto3" json:"eth,omitempty"` IName string `protobuf:"bytes,6,opt,name=iName,proto3" json:"iName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IReq) Descriptor ¶
func (*IReq) GetAddress ¶
func (*IReq) GetListenPort ¶
func (*IReq) GetPrivateKey ¶
func (*IReq) GetSaveConfig ¶
func (*IReq) ProtoMessage ¶
func (*IReq) ProtoMessage()
func (*IReq) XXX_DiscardUnknown ¶
func (m *IReq) XXX_DiscardUnknown()
func (*IReq) XXX_Unmarshal ¶
type IResp ¶
type IResp struct { // message could be error or ordinary result depend on function result. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IResp) Descriptor ¶
func (*IResp) GetMessage ¶
func (*IResp) ProtoMessage ¶
func (*IResp) ProtoMessage()
func (*IResp) XXX_DiscardUnknown ¶
func (m *IResp) XXX_DiscardUnknown()
func (*IResp) XXX_Marshal ¶
func (*IResp) XXX_Unmarshal ¶
type ListPeersReq ¶
type ListPeersReq struct { Nicname string `protobuf:"bytes,1,opt,name=nicname,proto3" json:"nicname,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPeersReq) Descriptor ¶
func (*ListPeersReq) Descriptor() ([]byte, []int)
func (*ListPeersReq) GetError ¶
func (m *ListPeersReq) GetError() string
func (*ListPeersReq) GetNicname ¶
func (m *ListPeersReq) GetNicname() string
func (*ListPeersReq) ProtoMessage ¶
func (*ListPeersReq) ProtoMessage()
func (*ListPeersReq) Reset ¶
func (m *ListPeersReq) Reset()
func (*ListPeersReq) String ¶
func (m *ListPeersReq) String() string
func (*ListPeersReq) XXX_DiscardUnknown ¶
func (m *ListPeersReq) XXX_DiscardUnknown()
func (*ListPeersReq) XXX_Marshal ¶
func (m *ListPeersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPeersReq) XXX_Merge ¶
func (m *ListPeersReq) XXX_Merge(src proto.Message)
func (*ListPeersReq) XXX_Size ¶
func (m *ListPeersReq) XXX_Size() int
func (*ListPeersReq) XXX_Unmarshal ¶
func (m *ListPeersReq) XXX_Unmarshal(b []byte) error
type ListPeersResp ¶
type ListPeersResp struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPeersResp) Descriptor ¶
func (*ListPeersResp) Descriptor() ([]byte, []int)
func (*ListPeersResp) GetResponse ¶
func (m *ListPeersResp) GetResponse() string
func (*ListPeersResp) ProtoMessage ¶
func (*ListPeersResp) ProtoMessage()
func (*ListPeersResp) Reset ¶
func (m *ListPeersResp) Reset()
func (*ListPeersResp) String ¶
func (m *ListPeersResp) String() string
func (*ListPeersResp) XXX_DiscardUnknown ¶
func (m *ListPeersResp) XXX_DiscardUnknown()
func (*ListPeersResp) XXX_Marshal ¶
func (m *ListPeersResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPeersResp) XXX_Merge ¶
func (m *ListPeersResp) XXX_Merge(src proto.Message)
func (*ListPeersResp) XXX_Size ¶
func (m *ListPeersResp) XXX_Size() int
func (*ListPeersResp) XXX_Unmarshal ¶
func (m *ListPeersResp) XXX_Unmarshal(b []byte) error
type ManageNICReq ¶
type ManageNICReq struct { // manage NIC is responsible to up and down given interface Nic string `protobuf:"bytes,1,opt,name=nic,proto3" json:"nic,omitempty"` Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ManageNICReq) Descriptor ¶
func (*ManageNICReq) Descriptor() ([]byte, []int)
func (*ManageNICReq) GetCmd ¶
func (m *ManageNICReq) GetCmd() string
func (*ManageNICReq) GetNic ¶
func (m *ManageNICReq) GetNic() string
func (*ManageNICReq) ProtoMessage ¶
func (*ManageNICReq) ProtoMessage()
func (*ManageNICReq) Reset ¶
func (m *ManageNICReq) Reset()
func (*ManageNICReq) String ¶
func (m *ManageNICReq) String() string
func (*ManageNICReq) XXX_DiscardUnknown ¶
func (m *ManageNICReq) XXX_DiscardUnknown()
func (*ManageNICReq) XXX_Marshal ¶
func (m *ManageNICReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManageNICReq) XXX_Merge ¶
func (m *ManageNICReq) XXX_Merge(src proto.Message)
func (*ManageNICReq) XXX_Size ¶
func (m *ManageNICReq) XXX_Size() int
func (*ManageNICReq) XXX_Unmarshal ¶
func (m *ManageNICReq) XXX_Unmarshal(b []byte) error
type ManageNICResp ¶
type ManageNICResp struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ManageNICResp) Descriptor ¶
func (*ManageNICResp) Descriptor() ([]byte, []int)
func (*ManageNICResp) GetMessage ¶
func (m *ManageNICResp) GetMessage() string
func (*ManageNICResp) ProtoMessage ¶
func (*ManageNICResp) ProtoMessage()
func (*ManageNICResp) Reset ¶
func (m *ManageNICResp) Reset()
func (*ManageNICResp) String ¶
func (m *ManageNICResp) String() string
func (*ManageNICResp) XXX_DiscardUnknown ¶
func (m *ManageNICResp) XXX_DiscardUnknown()
func (*ManageNICResp) XXX_Marshal ¶
func (m *ManageNICResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManageNICResp) XXX_Merge ¶
func (m *ManageNICResp) XXX_Merge(src proto.Message)
func (*ManageNICResp) XXX_Size ¶
func (m *ManageNICResp) XXX_Size() int
func (*ManageNICResp) XXX_Unmarshal ¶
func (m *ManageNICResp) XXX_Unmarshal(b []byte) error
type NICInfoReq ¶
type NICInfoReq struct { Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NICInfoReq) Descriptor ¶
func (*NICInfoReq) Descriptor() ([]byte, []int)
func (*NICInfoReq) GetInterface ¶
func (m *NICInfoReq) GetInterface() string
func (*NICInfoReq) ProtoMessage ¶
func (*NICInfoReq) ProtoMessage()
func (*NICInfoReq) Reset ¶
func (m *NICInfoReq) Reset()
func (*NICInfoReq) String ¶
func (m *NICInfoReq) String() string
func (*NICInfoReq) XXX_DiscardUnknown ¶
func (m *NICInfoReq) XXX_DiscardUnknown()
func (*NICInfoReq) XXX_Marshal ¶
func (m *NICInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NICInfoReq) XXX_Merge ¶
func (m *NICInfoReq) XXX_Merge(src proto.Message)
func (*NICInfoReq) XXX_Size ¶
func (m *NICInfoReq) XXX_Size() int
func (*NICInfoReq) XXX_Unmarshal ¶
func (m *NICInfoReq) XXX_Unmarshal(b []byte) error
type NICInfoResp ¶
type NICInfoResp struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NICInfoResp) Descriptor ¶
func (*NICInfoResp) Descriptor() ([]byte, []int)
func (*NICInfoResp) GetMessage ¶
func (m *NICInfoResp) GetMessage() string
func (*NICInfoResp) ProtoMessage ¶
func (*NICInfoResp) ProtoMessage()
func (*NICInfoResp) Reset ¶
func (m *NICInfoResp) Reset()
func (*NICInfoResp) String ¶
func (m *NICInfoResp) String() string
func (*NICInfoResp) XXX_DiscardUnknown ¶
func (m *NICInfoResp) XXX_DiscardUnknown()
func (*NICInfoResp) XXX_Marshal ¶
func (m *NICInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NICInfoResp) XXX_Merge ¶
func (m *NICInfoResp) XXX_Merge(src proto.Message)
func (*NICInfoResp) XXX_Size ¶
func (m *NICInfoResp) XXX_Size() int
func (*NICInfoResp) XXX_Unmarshal ¶
func (m *NICInfoResp) XXX_Unmarshal(b []byte) error
type PeerStatusReq ¶
type PeerStatusReq struct { NicName string `protobuf:"bytes,1,opt,name=nicName,proto3" json:"nicName,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerStatusReq) Descriptor ¶
func (*PeerStatusReq) Descriptor() ([]byte, []int)
func (*PeerStatusReq) GetNicName ¶
func (m *PeerStatusReq) GetNicName() string
func (*PeerStatusReq) GetPublicKey ¶
func (m *PeerStatusReq) GetPublicKey() string
func (*PeerStatusReq) ProtoMessage ¶
func (*PeerStatusReq) ProtoMessage()
func (*PeerStatusReq) Reset ¶
func (m *PeerStatusReq) Reset()
func (*PeerStatusReq) String ¶
func (m *PeerStatusReq) String() string
func (*PeerStatusReq) XXX_DiscardUnknown ¶
func (m *PeerStatusReq) XXX_DiscardUnknown()
func (*PeerStatusReq) XXX_Marshal ¶
func (m *PeerStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerStatusReq) XXX_Merge ¶
func (m *PeerStatusReq) XXX_Merge(src proto.Message)
func (*PeerStatusReq) XXX_Size ¶
func (m *PeerStatusReq) XXX_Size() int
func (*PeerStatusReq) XXX_Unmarshal ¶
func (m *PeerStatusReq) XXX_Unmarshal(b []byte) error
type PeerStatusResp ¶
type PeerStatusResp struct { // connected or not connected Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerStatusResp) Descriptor ¶
func (*PeerStatusResp) Descriptor() ([]byte, []int)
func (*PeerStatusResp) GetStatus ¶
func (m *PeerStatusResp) GetStatus() bool
func (*PeerStatusResp) ProtoMessage ¶
func (*PeerStatusResp) ProtoMessage()
func (*PeerStatusResp) Reset ¶
func (m *PeerStatusResp) Reset()
func (*PeerStatusResp) String ¶
func (m *PeerStatusResp) String() string
func (*PeerStatusResp) XXX_DiscardUnknown ¶
func (m *PeerStatusResp) XXX_DiscardUnknown()
func (*PeerStatusResp) XXX_Marshal ¶
func (m *PeerStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerStatusResp) XXX_Merge ¶
func (m *PeerStatusResp) XXX_Merge(src proto.Message)
func (*PeerStatusResp) XXX_Size ¶
func (m *PeerStatusResp) XXX_Size() int
func (*PeerStatusResp) XXX_Unmarshal ¶
func (m *PeerStatusResp) XXX_Unmarshal(b []byte) error
type PrivKeyReq ¶
type PrivKeyReq struct { PrivateKeyName string `protobuf:"bytes,1,opt,name=privateKeyName,proto3" json:"privateKeyName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrivKeyReq) Descriptor ¶
func (*PrivKeyReq) Descriptor() ([]byte, []int)
func (*PrivKeyReq) GetPrivateKeyName ¶
func (m *PrivKeyReq) GetPrivateKeyName() string
func (*PrivKeyReq) ProtoMessage ¶
func (*PrivKeyReq) ProtoMessage()
func (*PrivKeyReq) Reset ¶
func (m *PrivKeyReq) Reset()
func (*PrivKeyReq) String ¶
func (m *PrivKeyReq) String() string
func (*PrivKeyReq) XXX_DiscardUnknown ¶
func (m *PrivKeyReq) XXX_DiscardUnknown()
func (*PrivKeyReq) XXX_Marshal ¶
func (m *PrivKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivKeyReq) XXX_Merge ¶
func (m *PrivKeyReq) XXX_Merge(src proto.Message)
func (*PrivKeyReq) XXX_Size ¶
func (m *PrivKeyReq) XXX_Size() int
func (*PrivKeyReq) XXX_Unmarshal ¶
func (m *PrivKeyReq) XXX_Unmarshal(b []byte) error
type PrivKeyResp ¶
type PrivKeyResp struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrivKeyResp) Descriptor ¶
func (*PrivKeyResp) Descriptor() ([]byte, []int)
func (*PrivKeyResp) GetMessage ¶
func (m *PrivKeyResp) GetMessage() string
func (*PrivKeyResp) ProtoMessage ¶
func (*PrivKeyResp) ProtoMessage()
func (*PrivKeyResp) Reset ¶
func (m *PrivKeyResp) Reset()
func (*PrivKeyResp) String ¶
func (m *PrivKeyResp) String() string
func (*PrivKeyResp) XXX_DiscardUnknown ¶
func (m *PrivKeyResp) XXX_DiscardUnknown()
func (*PrivKeyResp) XXX_Marshal ¶
func (m *PrivKeyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivKeyResp) XXX_Merge ¶
func (m *PrivKeyResp) XXX_Merge(src proto.Message)
func (*PrivKeyResp) XXX_Size ¶
func (m *PrivKeyResp) XXX_Size() int
func (*PrivKeyResp) XXX_Unmarshal ¶
func (m *PrivKeyResp) XXX_Unmarshal(b []byte) error
type PubKeyReq ¶
type PubKeyReq struct { PubKeyName string `protobuf:"bytes,1,opt,name=pubKeyName,proto3" json:"pubKeyName,omitempty"` PrivKeyName string `protobuf:"bytes,2,opt,name=privKeyName,proto3" json:"privKeyName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubKeyReq) Descriptor ¶
func (*PubKeyReq) GetPrivKeyName ¶
func (*PubKeyReq) GetPubKeyName ¶
func (*PubKeyReq) ProtoMessage ¶
func (*PubKeyReq) ProtoMessage()
func (*PubKeyReq) XXX_DiscardUnknown ¶
func (m *PubKeyReq) XXX_DiscardUnknown()
func (*PubKeyReq) XXX_Marshal ¶
func (*PubKeyReq) XXX_Unmarshal ¶
type PubKeyResp ¶
type PubKeyResp struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PubKeyResp) Descriptor ¶
func (*PubKeyResp) Descriptor() ([]byte, []int)
func (*PubKeyResp) GetMessage ¶
func (m *PubKeyResp) GetMessage() string
func (*PubKeyResp) ProtoMessage ¶
func (*PubKeyResp) ProtoMessage()
func (*PubKeyResp) Reset ¶
func (m *PubKeyResp) Reset()
func (*PubKeyResp) String ¶
func (m *PubKeyResp) String() string
func (*PubKeyResp) XXX_DiscardUnknown ¶
func (m *PubKeyResp) XXX_DiscardUnknown()
func (*PubKeyResp) XXX_Marshal ¶
func (m *PubKeyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PubKeyResp) XXX_Merge ¶
func (m *PubKeyResp) XXX_Merge(src proto.Message)
func (*PubKeyResp) XXX_Size ¶
func (m *PubKeyResp) XXX_Size() int
func (*PubKeyResp) XXX_Unmarshal ¶
func (m *PubKeyResp) XXX_Unmarshal(b []byte) error
type UnimplementedWireguardServer ¶
type UnimplementedWireguardServer struct { }
UnimplementedWireguardServer can be embedded to have forward compatible implementations.
func (*UnimplementedWireguardServer) GenPrivateKey ¶
func (*UnimplementedWireguardServer) GenPrivateKey(ctx context.Context, req *PrivKeyReq) (*PrivKeyResp, error)
func (*UnimplementedWireguardServer) GenPublicKey ¶
func (*UnimplementedWireguardServer) GenPublicKey(ctx context.Context, req *PubKeyReq) (*PubKeyResp, error)
func (*UnimplementedWireguardServer) GetNICInfo ¶
func (*UnimplementedWireguardServer) GetNICInfo(ctx context.Context, req *NICInfoReq) (*NICInfoResp, error)
func (*UnimplementedWireguardServer) GetPeerStatus ¶
func (*UnimplementedWireguardServer) GetPeerStatus(ctx context.Context, req *PeerStatusReq) (*PeerStatusResp, error)
func (*UnimplementedWireguardServer) GetPrivateKey ¶
func (*UnimplementedWireguardServer) GetPrivateKey(ctx context.Context, req *PrivKeyReq) (*PrivKeyResp, error)
func (*UnimplementedWireguardServer) GetPublicKey ¶
func (*UnimplementedWireguardServer) GetPublicKey(ctx context.Context, req *PubKeyReq) (*PubKeyResp, error)
func (*UnimplementedWireguardServer) InitializeI ¶
func (*UnimplementedWireguardServer) ListPeers ¶
func (*UnimplementedWireguardServer) ListPeers(ctx context.Context, req *ListPeersReq) (*ListPeersResp, error)
func (*UnimplementedWireguardServer) ManageNIC ¶
func (*UnimplementedWireguardServer) ManageNIC(ctx context.Context, req *ManageNICReq) (*ManageNICResp, error)
type WireguardClient ¶
type WireguardClient interface { InitializeI(ctx context.Context, in *IReq, opts ...grpc.CallOption) (*IResp, error) AddPeer(ctx context.Context, in *AddPReq, opts ...grpc.CallOption) (*AddPResp, error) DelPeer(ctx context.Context, in *DelPReq, opts ...grpc.CallOption) (*DelPResp, error) ListPeers(ctx context.Context, in *ListPeersReq, opts ...grpc.CallOption) (*ListPeersResp, error) ManageNIC(ctx context.Context, in *ManageNICReq, opts ...grpc.CallOption) (*ManageNICResp, error) GetPeerStatus(ctx context.Context, in *PeerStatusReq, opts ...grpc.CallOption) (*PeerStatusResp, error) GetNICInfo(ctx context.Context, in *NICInfoReq, opts ...grpc.CallOption) (*NICInfoResp, error) GenPublicKey(ctx context.Context, in *PubKeyReq, opts ...grpc.CallOption) (*PubKeyResp, error) GenPrivateKey(ctx context.Context, in *PrivKeyReq, opts ...grpc.CallOption) (*PrivKeyResp, error) GetPrivateKey(ctx context.Context, in *PrivKeyReq, opts ...grpc.CallOption) (*PrivKeyResp, error) GetPublicKey(ctx context.Context, in *PubKeyReq, opts ...grpc.CallOption) (*PubKeyResp, error) }
WireguardClient is the client API for Wireguard service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWireguardClient ¶
func NewWireguardClient(cc *grpc.ClientConn) WireguardClient
type WireguardServer ¶
type WireguardServer interface { InitializeI(context.Context, *IReq) (*IResp, error) AddPeer(context.Context, *AddPReq) (*AddPResp, error) DelPeer(context.Context, *DelPReq) (*DelPResp, error) ListPeers(context.Context, *ListPeersReq) (*ListPeersResp, error) ManageNIC(context.Context, *ManageNICReq) (*ManageNICResp, error) GetPeerStatus(context.Context, *PeerStatusReq) (*PeerStatusResp, error) GetNICInfo(context.Context, *NICInfoReq) (*NICInfoResp, error) GenPublicKey(context.Context, *PubKeyReq) (*PubKeyResp, error) GenPrivateKey(context.Context, *PrivKeyReq) (*PrivKeyResp, error) GetPrivateKey(context.Context, *PrivKeyReq) (*PrivKeyResp, error) GetPublicKey(context.Context, *PubKeyReq) (*PubKeyResp, error) }
WireguardServer is the server API for Wireguard service.
Click to show internal directories.
Click to hide internal directories.