app

package
v0.0.0-...-5515e0f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type App

type App struct {
	module.DefaultProvider
	Config *Config
}

func New

func New(config *Config) *App

func (*App) Init

func (p *App) Init() error

func (*App) Name

func (p *App) Name() string

func (*App) ParseEndpoint

func (p *App) ParseEndpoint(elem ...string) string

func (*App) ParsePath

func (p *App) ParsePath(elem ...string) string

type Config

type Config struct {
	BasePath string
	Name     string
}

func NewConfig

func NewConfig(s *setting.Setting) (*Config, error)

Jump to

Keyboard shortcuts

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