assets

package
v0.0.0-...-dff1495 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Code generated by "pipeline"; DO NOT EDIT.

Code generated by "pipeline"; DO NOT EDIT.

Code generated by "pipeline"; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetType

type AssetType int
const (
	AssetTypeInvalid AssetType = iota
	AssetTypeAny
	AssetTypeAvatars
	AssetTypeWeapons
	AssetTypeArtifacts
	EndAssetType
)

func AssetTypeFromString

func AssetTypeFromString(s string) (AssetType, error)

func (AssetType) String

func (a AssetType) String() string

type Server

type Server struct {
	*chi.Mux
	// contains filtered or unexported fields
}

func New

func New() (*Server, error)

func (*Server) Init

func (s *Server) Init() error

func (*Server) SetOpts

func (s *Server) SetOpts(opts ...ServerCfg) error

func (*Server) Shutdown

func (s *Server) Shutdown() error

type ServerCfg

type ServerCfg func(s *Server) error

func WithAssetSource

func WithAssetSource(assetType AssetType, host string) ServerCfg

func WithAssetsPrefix

func WithAssetsPrefix(prefix string) ServerCfg

func WithCacheDir

func WithCacheDir(cacheDir string) ServerCfg

func WithCustomTimeout

func WithCustomTimeout(timeout time.Duration) ServerCfg

Jump to

Keyboard shortcuts

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