hut

package
v0.0.0-...-5e476a9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultUA = "hut/6.6.6"

Functions

This section is empty.

Types

type Client

type Client struct {
	*gqlclient.Client

	BaseURL string
	HTTP    *http.Client
}

func CreateClient

func CreateClient(service string, instanceURL string) *Client

type Config

type Config struct {
	Instances []*InstanceConfig `scfg:"instance"`
}

type InstanceConfig

type InstanceConfig struct {
	Name string `scfg:",param"`

	AccessToken    string   `scfg:"access-token"`
	AccessTokenCmd []string `scfg:"access-token-cmd"`

	Pages *ServiceConfig `scfg:"pages"`
}

func (*InstanceConfig) Services

func (instance *InstanceConfig) Services() map[string]*ServiceConfig

type ServiceConfig

type ServiceConfig struct {
	Origin string `scfg:"origin"`
}

Jump to

Keyboard shortcuts

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