notz

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterManager

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

func (*AdapterManager) Handle

func (am *AdapterManager) Handle(tenantId, host string, ctx *gin.Context)

func (*AdapterManager) ListAdapters

func (am *AdapterManager) ListAdapters() []string

type DomainIdent

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

type Notz

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

func New

func New(opts NotzOptions) *Notz

func (*Notz) ApplyAdapter

func (m *Notz) ApplyAdapter(tenantId string, id int64, data *entities.TenantDomain)

func (*Notz) ApplyTargetHook

func (m *Notz) ApplyTargetHook(tenantId string, id int64, data *entities.TargetHook)

func (*Notz) IsAllowed

func (m *Notz) IsAllowed(tenantId, host string) bool

func (*Notz) ListAdapters

func (m *Notz) ListAdapters() []string

func (*Notz) PreformEditorAction

func (m *Notz) PreformEditorAction(ctx httpx.AdapterEditorContext) (any, error)

func (*Notz) Reset

func (m *Notz) Reset(tenantId string, domainId int64)

func (*Notz) Serve

func (m *Notz) Serve(ctx *gin.Context)

func (*Notz) ServeEditorFile

func (m *Notz) ServeEditorFile(tenantId, file string, did int64, ctx *gin.Context)

func (*Notz) ServePublic

func (m *Notz) ServePublic(file string, c *gin.Context)

type NotzOptions

type NotzOptions struct {
	App               xtypes.App
	StaticHosts       map[string]string
	ResolveHostTenant func(host string) string
	RootHost          string
	TenantHostBase    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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