data_user

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Name           string    `json:"name"`
	Namespace      string    `json:"namespace"`
	RepositoryType string    `json:"repository_type"`
	Status         int       `json:"status"`
	IsPrivate      bool      `json:"is_private"`
	StarCount      int       `json:"star_count"`
	PullCount      int       `json:"pull_count"`
	UpdatedAt      time.Time `json:"last_updated"`
	CreatedAt      time.Time `json:"date_registered"`
	Affiliation    string    `json:"affiliation"`
}

func FetchRepositories

func FetchRepositories() ([]Repository, error)

func (Repository) GetUrl

func (data Repository) GetUrl() string

type RepositoryPage

type RepositoryPage struct {
	Count        int          `json:"count"`
	NextUrl      string       `json:"next"`
	PreviousUrl  string       `json:"previous"`
	Repositories []Repository `json:"results"`
}

Jump to

Keyboard shortcuts

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