Documentation ¶
Index ¶
- func Dotify(data []byte) (string, error)
- func NewFromMap(node api.Node, t map[string]interface{}) api.Transport
- func Undotify(data string) ([]byte, error)
- type Module
- func (m *Module) ByteLimit() int64
- func (m *Module) IsRunningClient() bool
- func (m *Module) IsRunningServer() bool
- func (m *Module) Listen(listen string, adminMode bool)
- func (m *Module) MarshalJSON() (b []byte, e error)
- func (m *Module) Name() string
- func (m *Module) RPC(host string, method api.Action, args ...interface{}) (interface{}, error)
- func (m *Module) SetByteLimit(limit int64)
- func (m *Module) Stop()
- func (m *Module) WriteDownstream(buf []byte, size int)
- func (m *Module) WriteUpstream(buf []byte, size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromMap ¶
NewFromMap : Makes a new instance of this transport module from a map of arguments (for deserialization support)
Types ¶
type Module ¶
type Module struct {
ListenStr, UpstreamStr string
ClientConv, ServerConv uint32
// contains filtered or unexported fields
}
Module : DNS Implementation of a Transport module
func (*Module) IsRunningClient ¶
IsRunningClient - returns true if the client is running
func (*Module) IsRunningServer ¶
IsRunningServer - returns true if the server is running
func (*Module) MarshalJSON ¶
MarshalJSON : Create a serialied representation of the config of this module
func (*Module) SetByteLimit ¶
SetByteLimit - set limit on bytes per bundle for this transport
func (*Module) WriteDownstream ¶
WriteDownstream - Writes KCP data to the DNS Client via DNS Responses
func (*Module) WriteUpstream ¶
WriteUpstream - Writes KCP data in DNS Request form to the channel headed outbound from the client
Click to show internal directories.
Click to hide internal directories.