Documentation
¶
Overview ¶
mtg is just a command-line application that starts a proxy.
Application logic is how to read a config and configure mtglib.Proxy. So, probably you need to read the documentation for mtglib package first.
mtglib is a core of the application. The rest of the packages provide some default implementations for the interfaces, defined in mtglib.
Directories
¶
| Path | Synopsis |
|---|---|
|
Antireplay package has cache implementations that are effective against replay attacks.
|
Antireplay package has cache implementations that are effective against replay attacks. |
|
benchmarks
|
|
|
cmd/echo
command
Echo server — runs on Amsterdam, simulates Telegram DC.
|
Echo server — runs on Amsterdam, simulates Telegram DC. |
|
cmd/realnet
command
|
|
|
cmd/relay
command
Relay server — the process we measure.
|
Relay server — the process we measure. |
|
This is a minimal package that contains _essentials_ of mtglib and its complimentary packages.
|
This is a minimal package that contains _essentials_ of mtglib and its complimentary packages. |
|
Events has a default implementations of EventStream for mtglib.
|
Events has a default implementations of EventStream for mtglib. |
|
internal
|
|
|
Package ipblocklist contains default implementation of the mtglib.IPBlocklist for mtg.
|
Package ipblocklist contains default implementation of the mtglib.IPBlocklist for mtg. |
|
files
files defines a set of abstraction for 'files': an openable entities that could be read after.
|
files defines a set of abstraction for 'files': an openable entities that could be read after. |
|
Package logger has implementation of loggers for mtglib.Logger interface.
|
Package logger has implementation of loggers for mtglib.Logger interface. |
|
mtglib defines a package with MTPROTO proxy.
|
mtglib defines a package with MTPROTO proxy. |
|
Network contains a default implementation of the network.
|
Network contains a default implementation of the network. |
|
v2
Network contains a default implementation of the network.
|
Network contains a default implementation of the network. |
|
Stats package has implementations of events.Observer for different monitoring systems.
|
Stats package has implementations of events.Observer for different monitoring systems. |
Click to show internal directories.
Click to hide internal directories.