frame

package
v0.0.0-...-1256235 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ExtJS  = ".js"
	ExtLog = ".log"
)
View Source
const (
	MetaRoute   = "route"
	MetaConsume = "consume"
	MetaMatch   = "match"
	MetaPath    = "path"
	MetaMethod  = "method"
	MetaTopic   = "topic"
	MetaGroup   = "group"
	MetaHandler = "handler"
)
View Source
const (
	FuncRegister = "register"
	FuncRequire  = "require"
	VarContext   = "context"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

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

func NewFrame

func NewFrame(bus bus.Bus) (*Frame, error)

func (*Frame) Fini

func (frame *Frame) Fini()

func (*Frame) Notify

func (frame *Frame) Notify(os.Signal)

type Plugin

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

func NewPlugin

func NewPlugin(name string, content []byte,
	cpl *capal.Capal) (*Plugin, error)

plugin uses name as runtime context indexing for looking-up resources, like logging instance. the changing of name must then recreate ctx.

func (*Plugin) Fini

func (plugin *Plugin) Fini()

func (*Plugin) Http

func (plugin *Plugin) Http() bool

func (*Plugin) HttpHandle

func (plugin *Plugin) HttpHandle(req *tbhttp.Request) (*tbhttp.Response, error)

func (*Plugin) HttpMethod

func (plugin *Plugin) HttpMethod() string

func (*Plugin) HttpPath

func (plugin *Plugin) HttpPath() string

func (*Plugin) Kafka

func (plugin *Plugin) Kafka() bool

func (*Plugin) KafkaGroup

func (plugin *Plugin) KafkaGroup() string

func (*Plugin) KafkaHandle

func (plugin *Plugin) KafkaHandle(msg *tbkafka.CGMessage)

func (*Plugin) KafkaTopic

func (plugin *Plugin) KafkaTopic() string

func (*Plugin) Load

func (plugin *Plugin) Load() error

func (*Plugin) Log

func (plugin *Plugin) Log() *tblog.TbLog

func (*Plugin) Name

func (plugin *Plugin) Name() string

func (*Plugin) Reload

func (plugin *Plugin) Reload(content []byte) error

func (*Plugin) Rename

func (plugin *Plugin) Rename(name string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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