contract

package
v0.0.0-...-a5f9fc7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type Organization

type Organization struct {
	Name  string `json:"name"`
	ID    string `json:"id"`
	Slug  string `json:"slug"`
	URL   string `json:"url"`
	Group *Group `json:"group"`
}

type OrganizationsResponse

type OrganizationsResponse struct {
	Organizations []Organization `json:"orgs"`
}

type Orgs

type Orgs struct {
	Name  string `json:"name"`
	Id    string `json:"id"`
	Group Group  `json:"group"`
}

type SelfResponse

type SelfResponse struct {
	Data SelfResponseData
}

type SelfResponseData

type SelfResponseData struct {
	Attributes SelfResponseDataAttribute `json:"attributes,omitempty"`
	Id         string                    `json:"id,omitempty"`
	Type       string                    `json:"type,omitempty"`
}

type SelfResponseDataAttribute

type SelfResponseDataAttribute struct {
	AvatarUrl         string `json:"avatar_url,omitempty"`
	DefaultOrgContext string `json:"default_org_context,omitempty"`
	Name              string `json:"name,omitempty"`
	Username          string `json:"username,omitempty"`
	Email             string `json:"email,omitempty"`
}

type UserMe

type UserMe struct {
	Id       *string `json:"id"`
	UserName *string `json:"username"`
	Email    *string `json:"email"`
	Orgs     []Orgs  `json:"orgs"`
}

Jump to

Keyboard shortcuts

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