Documentation ¶
Index ¶
- Variables
- func FriendCodeIsValid(wiiID string) bool
- func GenMailErrorCode(mailNumber string, error int, reason string) string
- func GenNormalErrorCode(error int, reason string) string
- func GenSuccessResponse() string
- func GenSuccessResponseTyped(divider string) string
- func GenerateBoundary() string
- func LogError(ravenClient *raven.Client, reason string, err error)
- func RandStringBytesMaskImprSrc(n int) string
- type Config
- type ConfigFormat
- Bugs
Constants ¶
This section is empty.
Variables ¶
var ConfigMagic = []byte("WcCf")
Functions ¶
func FriendCodeIsValid ¶
friendCodeIsValid determines if a friend code is valid by checking not empty, is 17 in length, starts with w. BUG(spotlightishere): does not actually determine at a numerical level if valid.
func GenMailErrorCode ¶
GenMailErrorCode formulates a proper response needed for mail-specific errors.
func GenNormalErrorCode ¶
GenNormalErrorCode formulates a proper response for overall errors.
func GenSuccessResponse ¶
func GenSuccessResponse() string
GenSuccessResponse returns a successful message, using = as the divider between characters.
func GenSuccessResponseTyped ¶
GenSuccessResponseTyped returns a successful message, using the specified character as a divider.
func GenerateBoundary ¶
func GenerateBoundary() string
GenerateBoundary returns a string with the format Nintendo used for boundaries.
func RandStringBytesMaskImprSrc ¶
RandStringBytesMaskImprSrc makes a random string with the specified size.
Types ¶
type Config ¶
type Config struct { Port int Host string Username string Password string DBName string Interval int BindTo string SendGridKey string SendGridDomain string Debug bool PatchBaseDomain string RavenDSN string }
Config structure for `config.json`.
type ConfigFormat ¶
type ConfigFormat struct { Magic [4]byte Version int32 FriendCode int64 AmountOfCreations int32 HasRegistered int32 MailDomain [64]byte Passwd [32]byte Mlchkid [36]byte AccountURL [128]byte CheckURL [128]byte ReceiveURL [128]byte DeleteURL [128]byte SendURL [128]byte TitleBooting int32 Checksum [4]byte // contains filtered or unexported fields }
Notes ¶
Bugs ¶
does not actually determine at a numerical level if valid.