app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppEnv = "prod"
)

Functions

func IsDev

func IsDev() bool

func Run

func Run(emb EmbeddedResources) error

Types

type App

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

App struct

func NewApp

func NewApp() *App

NewApp creates a new App application struct

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context)

func (*App) Startup

func (a *App) Startup(ctx context.Context)

startup is called when the app starts. The context is saved so we can call the runtime methods

type AppApi

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

func (*AppApi) GetGRPCUrl

func (a *AppApi) GetGRPCUrl() string

type AppInfo

type AppInfo struct {
	Version   string
	Name      string
	Copyright string
}

type EmbeddedResources

type EmbeddedResources struct {
	Assets      embed.FS
	Icon        []byte
	WailsConfig []byte
}

Jump to

Keyboard shortcuts

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