imgd

package
v0.0.0-...-fdc8e6b Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   server.Config   `yaml:"server,omitempty"`
	McClient mcclient.Config `yaml:"mcclient,omitempty"`
	Logger   log.Logger
	// Add open CORS headers to easch response
	CorsAllowAll bool
	// Return an ETag based on the texture ID
	UseETags bool
	// Return a 302 redirect for Username requests to their related UUID
	RedirectUsername bool
	CacheControlTTL  time.Duration
}

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(f *flag.FlagSet)

RegisterFlags registers flag.

type Imgd

type Imgd struct {
	Cfg Config

	Server        *server.Server
	McClient      *mcclient.McClient
	ProcessRoutes map[string]skind.SkinProcessor
}

func New

func New(cfg Config) (*Imgd, error)

func (*Imgd) Run

func (i *Imgd) Run() error

Jump to

Keyboard shortcuts

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