model

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FOLLOWING_URL = "https://api.github.com/users/%s/following?per_page=100"
	FOLLOWERS_URL = "https://api.github.com/users/%s/followers?per_page=100"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MyUser

type MyUser struct {
	Followers  []User
	Following  []User
	Login      string `json:"login"`
	TargetUser string
	Token      string
	UserStatus map[string]string
}

Main user struct

func (*MyUser) FetchAllowDenyList added in v1.4.0

func (receiver *MyUser) FetchAllowDenyList()

func (*MyUser) FetchFollowers

func (receiver *MyUser) FetchFollowers(count *int)

func (*MyUser) FetchFollowing

func (receiver *MyUser) FetchFollowing(count *int)

func (*MyUser) Follow

func (receiver *MyUser) Follow()

func (*MyUser) PrintFollowers added in v1.5.0

func (receiver *MyUser) PrintFollowers()

func (*MyUser) PrintFollowing added in v1.5.0

func (receiver *MyUser) PrintFollowing()

func (*MyUser) PrintStatus added in v1.5.0

func (receiver *MyUser) PrintStatus()

func (*MyUser) Unfollow

func (receiver *MyUser) Unfollow()

type User

type User struct {
	Login string `json:"login"`
}

a single user struct

Jump to

Keyboard shortcuts

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