example

package
v0.0.0-...-a9bd8d8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() plugin.Plugin

New plugin包定义的必须实现的函数,用于注册组件使用

Types

type Simple

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

Simple 实现plugin.Plugin接口

func (*Simple) Caller

func (s *Simple) Caller(single plugin.Single)

Caller 接收可接受的Posix信号时调用的方法

func (*Simple) GetName

func (s *Simple) GetName() string

GetName 返回组件的名字

func (*Simple) GetSupport

func (s *Simple) GetSupport() []uint32

GetSupport 返回组件的需要的资源类型

func (*Simple) GetType

func (s *Simple) GetType() plugin.Type

GetType 返回组件的类型

func (*Simple) SetSource

func (s *Simple) SetSource(source *plugin.Source)

SetSource 设置从Context准备好的资源 context会根据Support Slice声明的类型设置,没有声明的为nil

func (*Simple) Start

func (s *Simple) Start(args []string)

Start 启动时调用的方法

Jump to

Keyboard shortcuts

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