Documentation ¶
Index ¶
Constants ¶
View Source
const ( TCMessageSize = (100 << 10) TCWorkSize = 10 TCCapacity = (1 << 10) TCMaxConnects = (1 << 6) TCQueueCapacity = (1 << 4) TCQueuePeriod = 1000 // milliseconds TCNetworkKey = "network-key" // milliseconds )
View Source
const ( TcHead = uint32(0xDEADBEAF) TcBody = "hello, world!" TcBodyTemplate = TcBody + " (%d)" )
View Source
const ( TcKeySize = 1024 Tc1PrivKey1024 = `` /* 1229-byte string literal not displayed */ Tc2PrivKey1024 = `` /* 1227-byte string literal not displayed */ )
View Source
const (
TcLargeBody = "" /* 102400-byte string literal not displayed */
)
View Source
const (
TcUnknownHost = "localhost:65535"
)
Variables ¶
View Source
var ( //go:embed test_binary.msg TCBinaryMessage []byte //go:embed test_string.msg TCStringMessage string )
View Source
var ( // open indexes = [24, 37, 59] TgAddrs = [60]string{ "localhost:8040", "localhost:8041", "localhost:8042", "localhost:8043", "localhost:8044", "localhost:8045", "localhost:8046", "localhost:8047", "localhost:8048", "localhost:8049", "localhost:8050", "localhost:8051", "localhost:8052", "localhost:8053", "localhost:8054", "localhost:8055", "localhost:8056", "localhost:8057", "localhost:8058", "localhost:8059", "localhost:8060", "localhost:8061", "localhost:8062", "localhost:8063", "localhost:8064", "localhost:8065", "localhost:8066", "localhost:8067", "localhost:8068", "localhost:8069", "localhost:8070", "localhost:8071", "localhost:8072", "localhost:8073", "localhost:8074", "localhost:8075", "localhost:8076", "localhost:8077", "localhost:8078", "localhost:8079", "localhost:8080", "localhost:8081", "localhost:8082", "localhost:8083", "localhost:8085", "localhost:8086", "localhost:8087", "localhost:8088", "localhost:8089", "localhost:8090", "localhost:8091", "localhost:8092", "localhost:8093", "localhost:8094", "localhost:8095", "localhost:8096", "localhost:8097", "localhost:8098", "localhost:8099", "localhost:8100", } )
View Source
var (
TgPubKeys = [4]string{
`PubKey{30818902818100D9858A9B2E81BA4543A2548E443936DDC9F2134892315AF511F295A50B869B7A3F6D5F6B774AD2A2139113BAC1CBBDCDE19C3C6152A625A5926C6FA2F0F536A21424520F54D98855A57415B6176170DE9768A988129AC98923D7CB12ACA5548D2D12758B485606FE882C0F3E5169905C9F894120752DADBE858CFA42B400C9430203010001}`,
`PubKey{30818902818100AFA5EFA35125D78B20D3EB5C5B7DE8A6654B43440C1A94532E8A95931B13DA3EC24DEA85FEF33893DE8305369D0C2C7BEE47729DEACA5A38DB70298015B9E7217B5A0FF180FCF24D42F858C262BD0CE634CDBFB87823430AB13F46A87F413BF3A5C0220435A1ABA2481CC35E71BEFDA34CB689285EE8FF5F1EABCB2529313CC10203010001}`,
`PubKey{30818902818100CA8E654D74F763F99F57087CF42FD056D0D634F54B01A3FC86C11926776F9C5490C66D5045DCA676225E7447AA21879F830DCB747448E0162336AC414C2CF3CB51810B058CF22D330B641156BF3AAEA21A90CB0C42BE323E591DC12202905A30E8A2F1CF99C7BCCFC7EF19C2BC4FC755DCD3488A4EC59A7A610293E6D5323F650203010001}`,
`PubKey{30818902818100C803B6084ED6D512EE93999EA41E1F91A8AB9495D2CB350C1ED67489A8EECD45F1C02B3AA65993D1F9F0B1981526CA990128DD0A1E706B0AA0012F6FF8978B405B21937C68BC1AA353E575DD54D64217777DF19DDEA4AC09E3121D64216FBC1484A90BF57AD25AE3065AFF72DE7F6EE40578DE09C93FAC09729C06CE2A42BF9F0203010001}`,
}
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.