users

package
v0.0.0-...-1b8f325 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// rootCmd is the Viper root command
	RootCmd = &cobra.Command{
		Use: "users",
		PersistentPreRun: func(cmd *cobra.Command, args []string) {

			switch flags.loglevel {
			case "error":
				log.SetLevel(logrus.ErrorLevel)
			case "warn":
				log.SetLevel(logrus.WarnLevel)
			case "info":
				log.SetLevel(logrus.InfoLevel)
			case "debug":
				log.SetLevel(logrus.DebugLevel)
			case "trace":
				log.SetLevel(logrus.TraceLevel)
			default:
				log.SetLevel(logrus.InfoLevel)
			}
			setup()
		},
	}
)

Functions

func DedupInt64Slice

func DedupInt64Slice(intSlice []int64) []int64

func DedupStringSlice

func DedupStringSlice(stringSlice []string) []string

Types

type BasicData

type BasicData struct {
	CreatedAt       string `json:"created_at"`
	Description     string `json:"description"`
	FavouritesCount int    `json:"favourites_count"`
	FollowersCount  int    `json:"followers_count"`
	FriendsCount    int    `json:"friends_count"`
	Location        string `json:"location"`
	Name            string `json:"name"`
	Protected       bool   `json:"protected"`
	ScreenName      string `json:"screen_name"`
	StatusesCount   int    `json:"statuses_count"`
	URL             string `json:"url"`
	UserID          int64  `json:"user_id"`
	Verified        bool   `json:"verified"`
}

type Flags

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

Flags struct contains settings for the root command

type Services

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

Jump to

Keyboard shortcuts

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