assetserver

package
v2.0.0-beta.28 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMimetype

func GetMimetype(filename string, data []byte) string

Types

type DesktopAssetServer

type DesktopAssetServer struct {
	// contains filtered or unexported fields
}

func NewDesktopAssetServer

func NewDesktopAssetServer(ctx context.Context, assets fs.FS, bindingsJSON string) (*DesktopAssetServer, error)

func (*DesktopAssetServer) Load

func (a *DesktopAssetServer) Load(filename string) ([]byte, string, error)

func (*DesktopAssetServer) LogDebug

func (d *DesktopAssetServer) LogDebug(message string, args ...interface{})

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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