portal

package module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 10 Imported by: 0

README

portal

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() core.Context

func Init

func Init() error

func NewActivePortal

func NewActivePortal(ctx core.Context)

func Serve

func Serve() error

func Shutdown

func Shutdown(activePortal Portal, logger *zap.Logger)

func Start

func Start() error

func Stop

func Stop() error

Types

type Portal

type Portal interface {
	Init() error
	Start() error
	Stop() error
	Context() core.Context
	Serve() error
}

func ActivePortal

func ActivePortal() Portal

type PortalImpl

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

func NewPortal

func NewPortal(ctx core.Context) *PortalImpl

func (*PortalImpl) Context

func (p *PortalImpl) Context() core.Context

func (*PortalImpl) Init

func (p *PortalImpl) Init() error

func (*PortalImpl) Serve

func (p *PortalImpl) Serve() error

func (*PortalImpl) SetContext

func (p *PortalImpl) SetContext(ctx core.Context)

func (*PortalImpl) Start

func (p *PortalImpl) Start() error

func (*PortalImpl) Stop

func (p *PortalImpl) Stop() error

Directories

Path Synopsis
cmd
File: core/meta.go
File: core/meta.go
db
File: service/meta.go
File: service/meta.go

Jump to

Keyboard shortcuts

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