frontend

package
v0.0.0-...-8fe3ef9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2018 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigMagic = []byte("WcCf")

Functions

func PatchNwcConfig

func PatchNwcConfig(ctx context.Context, originalConfig []byte) ([]byte, error)

PatchNwcConfig takes an original config, applies needed patches to the URL and such, updates the checksum and returns either nil, error or a patched config w/o error.

func RandStringBytesMaskImprSrc

func RandStringBytesMaskImprSrc(n int) string

RandStringBytesMaskImprSrc makes a random string with the specified size.

Types

type Accounts

type Accounts struct {
	Passwd  string
	Mlchkid string
}

The name will be the mlid.

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL