instagram

package
v0.0.0-...-3b05dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomUser

type RandomUser struct {
	Name       string   `json:"name"`
	Location   string   `json:"location"`
	Gender     string   `json:"gender"`
	Picture    string   `json:"picture"`
	FeedImages []string `json:"feedImages"`
}

type User

type User struct {
	MobileEmail string `json:"mobileEmail"`
	FullName    string `json:"fullName"`
	Username    string `json:"username"`
	Password    string `json:"password"`
}

type UserKey

type UserKey struct {
	// contains filtered or unexported fields
}

type UserService

type UserService struct {
	UserMap map[UserKey]*User
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService() *UserService

func (*UserService) AddUser

func (u *UserService) AddUser(cseName string, user User) error

func (*UserService) GetRandProfile

func (u *UserService) GetRandProfile() RandomUser

func (*UserService) GetRandProfileByGender

func (u *UserService) GetRandProfileByGender(gender string) RandomUser

func (*UserService) GetTweets

func (u *UserService) GetTweets() []*User

func (*UserService) GetUsers

func (u *UserService) GetUsers(cseName string) []User

func (*UserService) IsValidPassword

func (u *UserService) IsValidPassword(cseName, username, passwordAttempt string) bool

Jump to

Keyboard shortcuts

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