Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseIndex = 0 // number 0 BaseOneIndex = 1 // number 1 BaseTwoIndex = 2 // number 2 BaseThreeIndex = 3 // number 2 Base4Bit = 4 // number 8 Base8Bit = 8 // number 8 Base16Bit = 16 // number 16 Base32Bit = 32 // number 32 Base64Bit = 64 // number 64 BaseTimeOut = 40 // 40 seconds BaseTen = 10 // 10 seconds )
the base constant values.
View Source
const ( BaseIndexStr = "0" // number 0 BaseOneIndexStr = "1" // number 1 DotStr = "." // dot : . LineStr = "-" // line : - EMPTY = "" //an empty string. UNDER = "_" // an underscope : _ STR_SIGN = "\"" // the string sign : " CHAR_STR = '"' // the string sign : " )
the string base constant values.
View Source
const ( LineChar = '-' // line : '-' EqualChar = '=' // equal: '=' SpaceChar = ' ' // space: ' ' DPointChar = ':' // double point: ':' )
View Source
const ( Yes = "yes" CapYes = "Yes" No = "no" CapNo = "No" )
View Source
const ( DY = "$" WOTO_TEXT = "WOTO_TEXT" DY_WOTO_TEXT = DY + WOTO_TEXT )
View Source
const ( PORT_ERROR = `Couldn't find PORT value.` TOKEN_ERROR = `No token provided! Cannot run app!` INVALID_API = `Error! Couldn't resolve API!` INVALID_ENGINE = `Error! Agent has no permission to start!` ALREADY_RUNNING = `Already running the app!` WOTO_CLIENT_ERROR = `Couldn't generate woto client!` GET_WCONFIG_ERROR = `Couldn't get raw in GetWotoConfiguration method!` GET_MAIN_SUDO_ERROR = `Tried to get main sudo id from db, but it's zero!` GET_SUDO_LIST_ERROR = `Tried to get sudo list from db, but it's Empty!` PAT_CLIENT_ERROR = `Couldn't generate pat client!` GET_PAT_LIST_ERROR = `Couldn't get raw in GetPatList method!` CLIENT_SETTINGS_NIL = `Tried to set client settings, but it was nil!!` HOST_ADDRESS_NOTSET = `Couldn't find main host address in the environment!` DATABASE1_NOTSET = `Couldn't find DATABASE1 address in the environment!` RUDEUS_URL_NOTSET = `Couldn't find Rudeus URL value in the environment!` SUDOLIST_SET_SETTINGS = `Tried to set sudo list, but couldn't split it!` SUDO_ADD_SETTINGS = `Tried to add a sudo to sudoList db, but couldn't!` )
View Source
const ( Jpg = ".jpg" // photo : jpg Jpeg = ".jpeg" // photo : jpeg Gif = ".gif" // gif (framed photos?) : gif Png = ".png" // photo : png Wav = ".wav" // oh yeah music : wav Wave = ".wave" // don't if it's really music: wave Mp3 = ".mp3" // I love mp3 more: mp3 M4a = ".m4a" // I hate musics with this format, my Nokia can't play them )
the file formats used in this project.
View Source
const ( TOKEN_KEY = "TELEGRAM_TOKEN_BOT" // the token HOST_ADDRESS_KEY = "HOST_ADDRESS" // db host address1 DATEBASE1_KEY = "DATABASE1" // db name1 )
The Keys in the environment.
View Source
const ( PAT_ID_KEY = "pat_id" PAT_TYPE_KEY = "pat_type" )
View Source
const ( COMMAND_PREFIX1 = "!" COMMAND_PREFIX2 = "/" SUDO_PREFIX1 = ">" FLAG_PREFIX = "--" JA_FLAG = "〰〰" BACK_STR = "\\\"" JA_STR = "❞" // start character (") for string in japanese. BACK_FLAG = "\\--" )
the prefex values for commands.
View Source
const ( APP_PORT = "PORT" GET_SLASH = "/" HTTP_ADDRESS = ":" FORMAT_VALUE = "%v" SPACE_VALUE = " " LineEscape = "\n" R_ESCAPE = "\r" SEMICOLON = ";" CAMA = "," ParaOpen = "(" ParaClose = ")" NullStr = "null" DoubleQ = "\"" SingleQ = "'" DoubleQJ = "”" BracketOpen = "[" Bracketclose = "]" Star = "*" BackSlash = "\\" DoubleBackSlash = "\\\\" Point = "." AutoStr = "auto" AtSign = "@" )
router config values
View Source
const ( // sudo_id = the user id of sudo. (int64) SudoID = "sudo_id" // sudo_date = the date which it becomes sudo. (see time) SudoDate = "sudo_date" // sudo_nickname = the nickname of sudo. (string) SudoNick = "sudo_nickname" )
View Source
const (
SET_VALUE = "$set"
)
View Source
const SUDO int64 = 1341091260
View Source
const TICK_INTERVAL = 25 * time.Second // seconds
Variables ¶
View Source
var DebugMode bool
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.