Documentation
¶
Index ¶
- Constants
- func CheckAuth(handler http.HandlerFunc, token string) http.HandlerFunc
- func DonateAccepted()
- func DonateSeen()
- func EnableMockBackend()
- func EnableWebAPI(port string)
- func GetTransport() *C.char
- func GetVersion() *C.char
- func InitializeBitmaskContext(opts *InitOpts)
- func InstallHelpers()
- func Login(username, password string)
- func Quit()
- func RefreshContext() *C.char
- func ResetError(errname string)
- func ResetNotification(label string)
- func SetSnowflake(snowflake bool)
- func SetTransport(label string)
- func SetUDP(udp bool)
- func SubscribeToEvent(event string, f unsafe.Pointer)
- func SwitchOff()
- func SwitchOn()
- func UseAutomaticGateway()
- func UseLocation(label string)
- type Events
- type InitOpts
- type Providers
Constants ¶
View Source
const OnStatusChanged string = "OnStatusChanged"
Variables ¶
This section is empty.
Functions ¶
func CheckAuth ¶
func CheckAuth(handler http.HandlerFunc, token string) http.HandlerFunc
func DonateAccepted ¶
func DonateAccepted()
func DonateSeen ¶
func DonateSeen()
func EnableMockBackend ¶
func EnableMockBackend()
func EnableWebAPI ¶
func EnableWebAPI(port string)
func GetTransport ¶
func GetVersion ¶
func InitializeBitmaskContext ¶
func InitializeBitmaskContext(opts *InitOpts)
func InstallHelpers ¶
func InstallHelpers()
func RefreshContext ¶
func ResetError ¶
func ResetError(errname string)
func ResetNotification ¶
func ResetNotification(label string)
func SetSnowflake ¶
func SetSnowflake(snowflake bool)
func SetTransport ¶
func SetTransport(label string)
func SubscribeToEvent ¶
func UseAutomaticGateway ¶
func UseAutomaticGateway()
func UseLocation ¶
func UseLocation(label string)
Types ¶
type Events ¶
type Events struct {
OnStatusChanged string
}
Events are just a enumeration of all the posible events that C functions can be interested in subscribing to. You cannot subscribe to an event that is not listed here.
type InitOpts ¶
type InitOpts struct { ProviderOptions *bitmask.ProviderOpts SkipLaunch bool Obfs4 bool UDP bool DisableAutostart bool StartVPN string }
func InitOptsFromJSON ¶
type Providers ¶
type Providers struct { Default string `json:"default"` Data []bitmask.ProviderOpts `json:"providers"` }
Click to show internal directories.
Click to hide internal directories.