data

package
v0.0.0-...-b49c65d Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToQueue

func AddUserToQueue(user *tgbotapi.User)

AddUserToQueue adds user to receiving queue

func GetSlice

func GetSlice() [][]string

GetSlice returns a slice of string slices which can be saved in a CSV file

func IsUserInQueue

func IsUserInQueue(user *tgbotapi.User) bool

IsUserInQueue returns true if user is in queue

func LoadFile

func LoadFile() error

LoadFile loads credentials CSV file in storage

func RemoveUserFromQueue

func RemoveUserFromQueue(user *tgbotapi.User)

RemoveUserFromQueue removes user from receiving queue

Types

type WifiCredentialData

type WifiCredentialData struct {
	Username string
	Password string
}

WifiCredentialData is struct containing username and password for wifi credentials

func Pop

func Pop() (WifiCredentialData, error)

Pop returns a new credentialData

type WifiCredentialStorage

type WifiCredentialStorage struct {
	sync.Mutex
	// contains filtered or unexported fields
}

WifiCredentialStorage is main struct with mux for credentials storage

func GetCredentialsStorage

func GetCredentialsStorage() *WifiCredentialStorage

GetCredentialsStorage returns our CredentialStorage singleton

Jump to

Keyboard shortcuts

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