protocbuf

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriverName = "protobuf_transcode"

Functions

func Create

func Create(id, name string, v *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

Create 创建service_http驱动的实例

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 创建service_http驱动工厂

func Register

func Register(register eosc.IExtenderDriverRegister)

Register 注册protobuf驱动工厂

Types

type Config

type Config struct {
	ProtoFiles eosc.EoFiles `json:"proto_files" label:"proto文件列表"`
}

Config protobuf驱动配置

func (*Config) String

func (c *Config) String() string

type Worker

type Worker struct {
	drivers.WorkerBase
	// contains filtered or unexported fields
}

func (*Worker) CheckSkill

func (w *Worker) CheckSkill(skill string) bool

func (*Worker) Descriptor

func (w *Worker) Descriptor() grpcurl.DescriptorSource

func (*Worker) Reset

func (w *Worker) Reset(conf interface{}, workers map[eosc.RequireId]eosc.IWorker) error

func (*Worker) Start

func (w *Worker) Start() error

func (*Worker) Stop

func (w *Worker) Stop() error

Jump to

Keyboard shortcuts

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