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 InstallHelpers ¶
func InstallHelpers()
func Quit ¶
func Quit()
func SwitchOff ¶
func SwitchOff()
func SwitchOn ¶
func SwitchOn()
func UseAutomaticGateway ¶
func UseAutomaticGateway()
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 Providers ¶
type Providers struct { Default string `json:"default"` Data []bitmask.ProviderOpts `json:"providers"` }
Click to show internal directories.
Click to hide internal directories.