Documentation ¶
Index ¶
- Constants
- func ImportUsers(username, password, eventId, csvPath string)
- type ApiResponse
- type CookieConnector
- func (connector *CookieConnector) AddUsersToEvent(eventId string, users []User) bool
- func (connector *CookieConnector) Connect() bool
- func (connector *CookieConnector) GetCsrfTokenFromAddPage(eventId string) string
- func (connector *CookieConnector) GetCsrfTokenFromLoginPage() string
- func (connector *CookieConnector) GetUserByGemId(eventId, gemId string) (User, error)
- func (connector *CookieConnector) GetUsersFromEvent(eventId string) []User
- type CsvUser
- type GemConnector
- type GemConnectorError
- type User
Constants ¶
View Source
const ( ErrNotFound = GemConnectorError("user was not found") ErrInvalidData = GemConnectorError("user had invalid data") )
Variables ¶
This section is empty.
Functions ¶
func ImportUsers ¶
func ImportUsers(username, password, eventId, csvPath string)
Types ¶
type ApiResponse ¶
type CookieConnector ¶
type CookieConnector struct {
// contains filtered or unexported fields
}
func (*CookieConnector) AddUsersToEvent ¶
func (connector *CookieConnector) AddUsersToEvent(eventId string, users []User) bool
func (*CookieConnector) Connect ¶
func (connector *CookieConnector) Connect() bool
func (*CookieConnector) GetCsrfTokenFromAddPage ¶
func (connector *CookieConnector) GetCsrfTokenFromAddPage(eventId string) string
func (*CookieConnector) GetCsrfTokenFromLoginPage ¶
func (connector *CookieConnector) GetCsrfTokenFromLoginPage() string
Regex is more than 3 times faster than using Goquery in this case according to benchmarks
func (*CookieConnector) GetUserByGemId ¶
func (connector *CookieConnector) GetUserByGemId(eventId, gemId string) (User, error)
func (*CookieConnector) GetUsersFromEvent ¶
func (connector *CookieConnector) GetUsersFromEvent(eventId string) []User
type GemConnector ¶
type GemConnectorError ¶
type GemConnectorError string
func (GemConnectorError) Error ¶
func (e GemConnectorError) Error() string
Click to show internal directories.
Click to hide internal directories.