types

package
v0.0.0-...-616e7de Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PUBLIC_API = "https://backboard.railway.app/graphql/v2"

Variables

This section is empty.

Functions

This section is empty.

Types

type RailwayClient

type RailwayClient struct {
	GraphQL  *graphql.Client
	Context  context.Context
	Cancel   context.CancelFunc
	Endpoint string
	Token    string
}

func NewRailwayClient

func NewRailwayClient(token string) *RailwayClient

func (*RailwayClient) GetRegions

func (cli *RailwayClient) GetRegions() (*RegionsRes, error)

type RegionsRes

type RegionsRes struct {
	Regions []struct {
		Name string `json:"name"`
	} `json:"regions"`
}

Jump to

Keyboard shortcuts

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