repos

package
v0.0.0-...-b58d5ac Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(w http.ResponseWriter, r *http.Request)
func Link(w http.ResponseWriter, r *http.Request)

returns 201 on success, no body { "message": "err" } otherwise

Types

type Owner

type Owner struct {
	Login      string `json:"login"`
	ID         uint32 `json:"id"`
	NodeID     string `json:"node_id"`
	AvatarURL  string `json:"avatar_url"`
	GravatarID string `json:"gravatar_id"`
}

type Repository

type Repository struct {
	// added attributes:
	Linked  bool `json:"linked"`
	IsOwner bool `json:"is_owner"`

	ID          uint32  `json:"id"`
	Name        string  `json:"name"`
	FullName    string  `json:"full_name"`
	Private     bool    `json:"private"`
	Owner       Owner   `json:"owner"`
	Description *string `json:"description"`
	Fork        bool    `json:"fork"`
}

types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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