Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func CheckConfig(v interface{}, workers IWorkers) (map[RequireId]interface{}, error)
- func Now() string
- func RegisterProfessionDriver(name string, factory IProfessionDriverFactory) error
- func ToWorkerId(value, profession string) (string, bool)
- func TypeName(t reflect.Type) string
- func TypeNameOf(v interface{}) string
- type DriverConfig
- func (*DriverConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DriverConfig) GetDesc() string
- func (x *DriverConfig) GetId() string
- func (x *DriverConfig) GetLabel() string
- func (x *DriverConfig) GetName() string
- func (x *DriverConfig) GetParams() map[string]string
- func (*DriverConfig) ProtoMessage()
- func (x *DriverConfig) ProtoReflect() protoreflect.Message
- func (x *DriverConfig) Reset()
- func (x *DriverConfig) String() string
- type DriverDetail
- func (*DriverDetail) Descriptor() ([]byte, []int)deprecated
- func (x *DriverDetail) GetDesc() string
- func (x *DriverDetail) GetDriver() string
- func (x *DriverDetail) GetId() string
- func (x *DriverDetail) GetLabel() string
- func (x *DriverDetail) GetParams() map[string]string
- func (x *DriverDetail) GetPlugin() *PluginInfo
- func (*DriverDetail) ProtoMessage()
- func (x *DriverDetail) ProtoReflect() protoreflect.Message
- func (x *DriverDetail) Reset()
- func (x *DriverDetail) String() string
- type DriverInfo
- func (*DriverInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DriverInfo) GetDesc() string
- func (x *DriverInfo) GetId() string
- func (x *DriverInfo) GetLabel() string
- func (x *DriverInfo) GetName() string
- func (*DriverInfo) ProtoMessage()
- func (x *DriverInfo) ProtoReflect() protoreflect.Message
- func (x *DriverInfo) Reset()
- func (x *DriverInfo) String() string
- type IAdmin
- type IAdminHandler
- type IAdminPermission
- type IAdminWorker
- type IDataMarshaller
- type IDriverRegister
- type IProfessionData
- type IProfessionDataEdit
- type IProfessionDriver
- type IProfessionDriverCheckConfig
- type IProfessionDriverFactory
- type IProfessionsData
- type IRegister
- type IRegisterData
- type IUntyped
- type IWorker
- type IWorkerResources
- type IWorkers
- type IWorkersData
- type Item
- type JsonData
- type PluginInfo
- func (*PluginInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PluginInfo) GetGroup() string
- func (x *PluginInfo) GetName() string
- func (x *PluginInfo) GetProject() string
- func (*PluginInfo) ProtoMessage()
- func (x *PluginInfo) ProtoReflect() protoreflect.Message
- func (x *PluginInfo) Reset()
- func (x *PluginInfo) String() string
- type ProfessionConfig
- func (*ProfessionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProfessionConfig) GetAppendLabels() []string
- func (x *ProfessionConfig) GetDependencies() []string
- func (x *ProfessionConfig) GetDesc() string
- func (x *ProfessionConfig) GetDrivers() []*DriverConfig
- func (x *ProfessionConfig) GetLabel() string
- func (x *ProfessionConfig) GetName() string
- func (*ProfessionConfig) ProtoMessage()
- func (x *ProfessionConfig) ProtoReflect() protoreflect.Message
- func (x *ProfessionConfig) Reset()
- func (x *ProfessionConfig) String() string
- type ProfessionConfigData
- func (*ProfessionConfigData) Descriptor() ([]byte, []int)deprecated
- func (x *ProfessionConfigData) GetData() []*ProfessionConfig
- func (*ProfessionConfigData) ProtoMessage()
- func (x *ProfessionConfigData) ProtoReflect() protoreflect.Message
- func (x *ProfessionConfigData) Reset()
- func (x *ProfessionConfigData) String() string
- type ProfessionDetail
- func (*ProfessionDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ProfessionDetail) GetAppendLabels() []string
- func (x *ProfessionDetail) GetDependencies() []string
- func (x *ProfessionDetail) GetDesc() string
- func (x *ProfessionDetail) GetDrivers() []*DriverDetail
- func (x *ProfessionDetail) GetLabel() string
- func (x *ProfessionDetail) GetName() string
- func (*ProfessionDetail) ProtoMessage()
- func (x *ProfessionDetail) ProtoReflect() protoreflect.Message
- func (x *ProfessionDetail) Reset()
- func (x *ProfessionDetail) String() string
- type ProfessionDriverRegister
- type ProfessionInfo
- func (*ProfessionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProfessionInfo) GetDesc() string
- func (x *ProfessionInfo) GetLabel() string
- func (x *ProfessionInfo) GetName() string
- func (*ProfessionInfo) ProtoMessage()
- func (x *ProfessionInfo) ProtoReflect() protoreflect.Message
- func (x *ProfessionInfo) Reset()
- func (x *ProfessionInfo) String() string
- type Register
- type RequireId
- type TWorker
- type WorkerData
- func (*WorkerData) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerData) GetBody() []byte
- func (x *WorkerData) GetCreate() string
- func (x *WorkerData) GetDriver() string
- func (x *WorkerData) GetId() string
- func (x *WorkerData) GetName() string
- func (x *WorkerData) GetProfession() string
- func (x *WorkerData) GetUpdate() string
- func (*WorkerData) ProtoMessage()
- func (x *WorkerData) ProtoReflect() protoreflect.Message
- func (x *WorkerData) Reset()
- func (x *WorkerData) String() string
- type WorkerInfo
- func (*WorkerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerInfo) GetCreate() string
- func (x *WorkerInfo) GetDriver() string
- func (x *WorkerInfo) GetId() string
- func (x *WorkerInfo) GetName() string
- func (x *WorkerInfo) GetProfession() string
- func (x *WorkerInfo) GetUpdate() string
- func (*WorkerInfo) ProtoMessage()
- func (x *WorkerInfo) ProtoReflect() protoreflect.Message
- func (x *WorkerInfo) Reset()
- func (x *WorkerInfo) String() string
- type WorkersData
- type XMLData
- type YamlData
Constants ¶
const ( ProcessMaster = "master" ProcessWorker = "worker" ProcessHelper = "helper" )
Variables ¶
var ( ErrorDriverNotExist = errors.New("driver not exist") ErrorProfessionNotExist = errors.New("profession not exist") ErrorWorkerNotExits = errors.New("workers not exits") ErrorRegisterConflict = errors.New("conflict of register") ErrorNotGetSillForRequire = errors.New("not get skill for require") ErrorTargetNotImplementSkill = errors.New("require of skill not implement") ErrorParamsIsNil = errors.New("params is nil") ErrorParamNotExist = errors.New("not exist") ErrorStoreReadOnly = errors.New("store read only") ErrorRequire = errors.New("require") ErrorProfessionDependencies = errors.New("profession dependencies not complete") ErrorConfigIsNil = errors.New("config is nil") ErrorConfigFieldUnknown = errors.New("unknown type") )
var File_message_proto protoreflect.FileDescriptor
Functions ¶
func CheckConfig ¶
func RegisterProfessionDriver ¶
func RegisterProfessionDriver(name string, factory IProfessionDriverFactory) error
func ToWorkerId ¶ added in v0.1.0
func TypeNameOf ¶
func TypeNameOf(v interface{}) string
Types ¶
type DriverConfig ¶
type DriverConfig struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` Params map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DriverConfig) Descriptor
deprecated
added in
v0.1.0
func (*DriverConfig) Descriptor() ([]byte, []int)
Deprecated: Use DriverConfig.ProtoReflect.Descriptor instead.
func (*DriverConfig) GetDesc ¶ added in v0.1.0
func (x *DriverConfig) GetDesc() string
func (*DriverConfig) GetId ¶ added in v0.1.0
func (x *DriverConfig) GetId() string
func (*DriverConfig) GetLabel ¶ added in v0.1.0
func (x *DriverConfig) GetLabel() string
func (*DriverConfig) GetName ¶ added in v0.1.0
func (x *DriverConfig) GetName() string
func (*DriverConfig) GetParams ¶ added in v0.1.0
func (x *DriverConfig) GetParams() map[string]string
func (*DriverConfig) ProtoMessage ¶ added in v0.1.0
func (*DriverConfig) ProtoMessage()
func (*DriverConfig) ProtoReflect ¶ added in v0.1.0
func (x *DriverConfig) ProtoReflect() protoreflect.Message
func (*DriverConfig) Reset ¶ added in v0.1.0
func (x *DriverConfig) Reset()
func (*DriverConfig) String ¶ added in v0.1.0
func (x *DriverConfig) String() string
type DriverDetail ¶
type DriverDetail struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Driver string `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"` // 驱动名 = driverConfig.name Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` // string profession=5; Params map[string]string `` /* 153-byte string literal not displayed */ Plugin *PluginInfo `protobuf:"bytes,6,opt,name=plugin,proto3" json:"plugin,omitempty"` // contains filtered or unexported fields }
驱动详情
func ToDriverDetail ¶ added in v0.1.0
func ToDriverDetail(config *DriverConfig) *DriverDetail
func ToDriverDetails ¶ added in v0.1.0
func ToDriverDetails(config []*DriverConfig) []*DriverDetail
func (*DriverDetail) Descriptor
deprecated
added in
v0.1.0
func (*DriverDetail) Descriptor() ([]byte, []int)
Deprecated: Use DriverDetail.ProtoReflect.Descriptor instead.
func (*DriverDetail) GetDesc ¶ added in v0.1.0
func (x *DriverDetail) GetDesc() string
func (*DriverDetail) GetDriver ¶ added in v0.1.0
func (x *DriverDetail) GetDriver() string
func (*DriverDetail) GetId ¶ added in v0.1.0
func (x *DriverDetail) GetId() string
func (*DriverDetail) GetLabel ¶ added in v0.1.0
func (x *DriverDetail) GetLabel() string
func (*DriverDetail) GetParams ¶ added in v0.1.0
func (x *DriverDetail) GetParams() map[string]string
func (*DriverDetail) GetPlugin ¶ added in v0.1.0
func (x *DriverDetail) GetPlugin() *PluginInfo
func (*DriverDetail) ProtoMessage ¶ added in v0.1.0
func (*DriverDetail) ProtoMessage()
func (*DriverDetail) ProtoReflect ¶ added in v0.1.0
func (x *DriverDetail) ProtoReflect() protoreflect.Message
func (*DriverDetail) Reset ¶ added in v0.1.0
func (x *DriverDetail) Reset()
func (*DriverDetail) String ¶ added in v0.1.0
func (x *DriverDetail) String() string
type DriverInfo ¶
type DriverInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` // string profession=5; // contains filtered or unexported fields }
func (*DriverInfo) Descriptor
deprecated
added in
v0.1.0
func (*DriverInfo) Descriptor() ([]byte, []int)
Deprecated: Use DriverInfo.ProtoReflect.Descriptor instead.
func (*DriverInfo) GetDesc ¶ added in v0.1.0
func (x *DriverInfo) GetDesc() string
func (*DriverInfo) GetId ¶ added in v0.1.0
func (x *DriverInfo) GetId() string
func (*DriverInfo) GetLabel ¶ added in v0.1.0
func (x *DriverInfo) GetLabel() string
func (*DriverInfo) GetName ¶ added in v0.1.0
func (x *DriverInfo) GetName() string
func (*DriverInfo) ProtoMessage ¶ added in v0.1.0
func (*DriverInfo) ProtoMessage()
func (*DriverInfo) ProtoReflect ¶ added in v0.1.0
func (x *DriverInfo) ProtoReflect() protoreflect.Message
func (*DriverInfo) Reset ¶ added in v0.1.0
func (x *DriverInfo) Reset()
func (*DriverInfo) String ¶ added in v0.1.0
func (x *DriverInfo) String() string
type IAdmin ¶
type IAdmin interface { IAdminWorker IAdminPermission }
type IAdminHandler ¶
type IAdminPermission ¶ added in v0.1.0
type IAdminPermission interface { Drivers(profession string) ([]*DriverInfo, error) DriverInfo(profession, driver string) (*DriverDetail, error) DriversItem(profession string) ([]*Item, error) ListProfessions() []*ProfessionInfo }
type IAdminWorker ¶ added in v0.1.0
type IAdminWorker interface { ListEmployees(profession string) ([]interface{}, error) //ListEmployeeNames(profession string) ([]string, error) Update(profession, name, driver string, data []byte) (interface{}, error) Delete(profession, name string) (interface{}, error) GetEmployee(profession, name string) (interface{}, error) }
type IDataMarshaller ¶ added in v0.1.0
type IDriverRegister ¶
type IDriverRegister interface { RegisterProfessionDriver(name string, factory IProfessionDriverFactory) error GetProfessionDriver(name string) (IProfessionDriverFactory, bool) }
var (
DefaultProfessionDriverRegister IDriverRegister = NewProfessionDriverRegister()
)
type IProfessionData ¶ added in v0.1.0
type IProfessionData interface { Drivers() []*DriverInfo GetDriver(name string) (*DriverDetail, bool) HasDriver(name string) bool AppendAttr() []string DriversItem() []*Item Detail() *ProfessionDetail }
type IProfessionDataEdit ¶ added in v0.1.0
type IProfessionDataEdit interface { SetDriver(name string, detail *DriverConfig) error DeleteDriver(name string) error }
type IProfessionDriver ¶
type IProfessionDriverCheckConfig ¶ added in v0.0.7
type IProfessionDriverFactory ¶
type IProfessionDriverFactory interface {
Create(profession string, name string, label string, desc string, params map[string]string) (IProfessionDriver, error)
}
func GetProfessionDriver ¶
func GetProfessionDriver(name string) (IProfessionDriverFactory, bool)
type IProfessionsData ¶ added in v0.1.0
type IProfessionsData interface { Set(name string, profession *ProfessionConfig) error Delete(name string) error GetProfession(name string) (IProfessionData, bool) Infos() []*ProfessionInfo Reset([]*ProfessionConfig) All() []*ProfessionConfig }
type IRegister ¶
type IRegister interface { Register(name string, obj interface{}, force bool) error Get(name string) (interface{}, bool) }
func NewRegister ¶
func NewRegister() IRegister
type IRegisterData ¶
type IUntyped ¶
type IUntyped interface { Set(name string, v interface{}) Get(name string) (interface{}, bool) Del(name string) (interface{}, bool) List() []interface{} Keys() []string All() map[string]interface{} Clone() IUntyped Count() int }
func NewUntyped ¶
func NewUntyped() IUntyped
type IWorkerResources ¶ added in v0.1.0
type IWorkerResources interface {
Ports() []int
}
type IWorkersData ¶ added in v0.1.0
type PluginInfo ¶ added in v0.1.0
type PluginInfo struct { Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` Project string `protobuf:"bytes,7,opt,name=project,proto3" json:"project,omitempty"` Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"` // 插件名 // contains filtered or unexported fields }
func (*PluginInfo) Descriptor
deprecated
added in
v0.1.0
func (*PluginInfo) Descriptor() ([]byte, []int)
Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.
func (*PluginInfo) GetGroup ¶ added in v0.1.0
func (x *PluginInfo) GetGroup() string
func (*PluginInfo) GetName ¶ added in v0.1.0
func (x *PluginInfo) GetName() string
func (*PluginInfo) GetProject ¶ added in v0.1.0
func (x *PluginInfo) GetProject() string
func (*PluginInfo) ProtoMessage ¶ added in v0.1.0
func (*PluginInfo) ProtoMessage()
func (*PluginInfo) ProtoReflect ¶ added in v0.1.0
func (x *PluginInfo) ProtoReflect() protoreflect.Message
func (*PluginInfo) Reset ¶ added in v0.1.0
func (x *PluginInfo) Reset()
func (*PluginInfo) String ¶ added in v0.1.0
func (x *PluginInfo) String() string
type ProfessionConfig ¶
type ProfessionConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` // Dependencies []string `protobuf:"bytes,4,rep,name=dependencies,proto3" json:"dependencies,omitempty"` AppendLabels []string `protobuf:"bytes,5,rep,name=appendLabels,proto3" json:"appendLabels,omitempty"` Drivers []*DriverConfig `protobuf:"bytes,6,rep,name=drivers,proto3" json:"drivers,omitempty"` // contains filtered or unexported fields }
func (*ProfessionConfig) Descriptor
deprecated
added in
v0.1.0
func (*ProfessionConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProfessionConfig.ProtoReflect.Descriptor instead.
func (*ProfessionConfig) GetAppendLabels ¶ added in v0.1.0
func (x *ProfessionConfig) GetAppendLabels() []string
func (*ProfessionConfig) GetDependencies ¶ added in v0.1.0
func (x *ProfessionConfig) GetDependencies() []string
func (*ProfessionConfig) GetDesc ¶ added in v0.1.0
func (x *ProfessionConfig) GetDesc() string
func (*ProfessionConfig) GetDrivers ¶ added in v0.1.0
func (x *ProfessionConfig) GetDrivers() []*DriverConfig
func (*ProfessionConfig) GetLabel ¶ added in v0.1.0
func (x *ProfessionConfig) GetLabel() string
func (*ProfessionConfig) GetName ¶ added in v0.1.0
func (x *ProfessionConfig) GetName() string
func (*ProfessionConfig) ProtoMessage ¶ added in v0.1.0
func (*ProfessionConfig) ProtoMessage()
func (*ProfessionConfig) ProtoReflect ¶ added in v0.1.0
func (x *ProfessionConfig) ProtoReflect() protoreflect.Message
func (*ProfessionConfig) Reset ¶ added in v0.1.0
func (x *ProfessionConfig) Reset()
func (*ProfessionConfig) String ¶ added in v0.1.0
func (x *ProfessionConfig) String() string
type ProfessionConfigData ¶ added in v0.1.0
type ProfessionConfigData struct { Data []*ProfessionConfig `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ProfessionConfigData) Descriptor
deprecated
added in
v0.1.0
func (*ProfessionConfigData) Descriptor() ([]byte, []int)
Deprecated: Use ProfessionConfigData.ProtoReflect.Descriptor instead.
func (*ProfessionConfigData) GetData ¶ added in v0.1.0
func (x *ProfessionConfigData) GetData() []*ProfessionConfig
func (*ProfessionConfigData) ProtoMessage ¶ added in v0.1.0
func (*ProfessionConfigData) ProtoMessage()
func (*ProfessionConfigData) ProtoReflect ¶ added in v0.1.0
func (x *ProfessionConfigData) ProtoReflect() protoreflect.Message
func (*ProfessionConfigData) Reset ¶ added in v0.1.0
func (x *ProfessionConfigData) Reset()
func (*ProfessionConfigData) String ¶ added in v0.1.0
func (x *ProfessionConfigData) String() string
type ProfessionDetail ¶ added in v0.1.0
type ProfessionDetail struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` Dependencies []string `protobuf:"bytes,4,rep,name=dependencies,proto3" json:"dependencies,omitempty"` AppendLabels []string `protobuf:"bytes,5,rep,name=appendLabels,proto3" json:"appendLabels,omitempty"` Drivers []*DriverDetail `protobuf:"bytes,6,rep,name=drivers,proto3" json:"drivers,omitempty"` // contains filtered or unexported fields }
func (*ProfessionDetail) Descriptor
deprecated
added in
v0.1.0
func (*ProfessionDetail) Descriptor() ([]byte, []int)
Deprecated: Use ProfessionDetail.ProtoReflect.Descriptor instead.
func (*ProfessionDetail) GetAppendLabels ¶ added in v0.1.0
func (x *ProfessionDetail) GetAppendLabels() []string
func (*ProfessionDetail) GetDependencies ¶ added in v0.1.0
func (x *ProfessionDetail) GetDependencies() []string
func (*ProfessionDetail) GetDesc ¶ added in v0.1.0
func (x *ProfessionDetail) GetDesc() string
func (*ProfessionDetail) GetDrivers ¶ added in v0.1.0
func (x *ProfessionDetail) GetDrivers() []*DriverDetail
func (*ProfessionDetail) GetLabel ¶ added in v0.1.0
func (x *ProfessionDetail) GetLabel() string
func (*ProfessionDetail) GetName ¶ added in v0.1.0
func (x *ProfessionDetail) GetName() string
func (*ProfessionDetail) ProtoMessage ¶ added in v0.1.0
func (*ProfessionDetail) ProtoMessage()
func (*ProfessionDetail) ProtoReflect ¶ added in v0.1.0
func (x *ProfessionDetail) ProtoReflect() protoreflect.Message
func (*ProfessionDetail) Reset ¶ added in v0.1.0
func (x *ProfessionDetail) Reset()
func (*ProfessionDetail) String ¶ added in v0.1.0
func (x *ProfessionDetail) String() string
type ProfessionDriverRegister ¶
type ProfessionDriverRegister struct {
// contains filtered or unexported fields
}
func NewProfessionDriverRegister ¶
func NewProfessionDriverRegister() *ProfessionDriverRegister
func (*ProfessionDriverRegister) GetProfessionDriver ¶
func (p *ProfessionDriverRegister) GetProfessionDriver(name string) (IProfessionDriverFactory, bool)
func (*ProfessionDriverRegister) RegisterProfessionDriver ¶
func (p *ProfessionDriverRegister) RegisterProfessionDriver(name string, factory IProfessionDriverFactory) error
type ProfessionInfo ¶
type ProfessionInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` // // contains filtered or unexported fields }
func (*ProfessionInfo) Descriptor
deprecated
added in
v0.1.0
func (*ProfessionInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProfessionInfo.ProtoReflect.Descriptor instead.
func (*ProfessionInfo) GetDesc ¶ added in v0.1.0
func (x *ProfessionInfo) GetDesc() string
func (*ProfessionInfo) GetLabel ¶ added in v0.1.0
func (x *ProfessionInfo) GetLabel() string
func (*ProfessionInfo) GetName ¶ added in v0.1.0
func (x *ProfessionInfo) GetName() string
func (*ProfessionInfo) ProtoMessage ¶ added in v0.1.0
func (*ProfessionInfo) ProtoMessage()
func (*ProfessionInfo) ProtoReflect ¶ added in v0.1.0
func (x *ProfessionInfo) ProtoReflect() protoreflect.Message
func (*ProfessionInfo) Reset ¶ added in v0.1.0
func (x *ProfessionInfo) Reset()
func (*ProfessionInfo) String ¶ added in v0.1.0
func (x *ProfessionInfo) String() string
type WorkerData ¶ added in v0.1.0
type WorkerData struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Profession string `protobuf:"bytes,2,opt,name=profession,proto3" json:"profession,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Driver string `protobuf:"bytes,4,opt,name=driver,proto3" json:"driver,omitempty"` Create string `protobuf:"bytes,5,opt,name=create,proto3" json:"create,omitempty"` Update string `protobuf:"bytes,6,opt,name=update,proto3" json:"update,omitempty"` Body []byte `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*WorkerData) Descriptor
deprecated
added in
v0.1.0
func (*WorkerData) Descriptor() ([]byte, []int)
Deprecated: Use WorkerData.ProtoReflect.Descriptor instead.
func (*WorkerData) GetBody ¶ added in v0.1.0
func (x *WorkerData) GetBody() []byte
func (*WorkerData) GetCreate ¶ added in v0.1.0
func (x *WorkerData) GetCreate() string
func (*WorkerData) GetDriver ¶ added in v0.1.0
func (x *WorkerData) GetDriver() string
func (*WorkerData) GetId ¶ added in v0.1.0
func (x *WorkerData) GetId() string
func (*WorkerData) GetName ¶ added in v0.1.0
func (x *WorkerData) GetName() string
func (*WorkerData) GetProfession ¶ added in v0.1.0
func (x *WorkerData) GetProfession() string
func (*WorkerData) GetUpdate ¶ added in v0.1.0
func (x *WorkerData) GetUpdate() string
func (*WorkerData) ProtoMessage ¶ added in v0.1.0
func (*WorkerData) ProtoMessage()
func (*WorkerData) ProtoReflect ¶ added in v0.1.0
func (x *WorkerData) ProtoReflect() protoreflect.Message
func (*WorkerData) Reset ¶ added in v0.1.0
func (x *WorkerData) Reset()
func (*WorkerData) String ¶ added in v0.1.0
func (x *WorkerData) String() string
type WorkerInfo ¶
type WorkerInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Profession string `protobuf:"bytes,2,opt,name=profession,proto3" json:"profession,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Driver string `protobuf:"bytes,4,opt,name=driver,proto3" json:"driver,omitempty"` Create string `protobuf:"bytes,5,opt,name=create,proto3" json:"create,omitempty"` Update string `protobuf:"bytes,6,opt,name=update,proto3" json:"update,omitempty"` // contains filtered or unexported fields }
func (*WorkerInfo) Descriptor
deprecated
added in
v0.1.0
func (*WorkerInfo) Descriptor() ([]byte, []int)
Deprecated: Use WorkerInfo.ProtoReflect.Descriptor instead.
func (*WorkerInfo) GetCreate ¶ added in v0.1.0
func (x *WorkerInfo) GetCreate() string
func (*WorkerInfo) GetDriver ¶ added in v0.1.0
func (x *WorkerInfo) GetDriver() string
func (*WorkerInfo) GetId ¶ added in v0.1.0
func (x *WorkerInfo) GetId() string
func (*WorkerInfo) GetName ¶ added in v0.1.0
func (x *WorkerInfo) GetName() string
func (*WorkerInfo) GetProfession ¶ added in v0.1.0
func (x *WorkerInfo) GetProfession() string
func (*WorkerInfo) GetUpdate ¶ added in v0.1.0
func (x *WorkerInfo) GetUpdate() string
func (*WorkerInfo) ProtoMessage ¶ added in v0.1.0
func (*WorkerInfo) ProtoMessage()
func (*WorkerInfo) ProtoReflect ¶ added in v0.1.0
func (x *WorkerInfo) ProtoReflect() protoreflect.Message
func (*WorkerInfo) Reset ¶ added in v0.1.0
func (x *WorkerInfo) Reset()
func (*WorkerInfo) String ¶ added in v0.1.0
func (x *WorkerInfo) String() string
type WorkersData ¶ added in v0.1.0
type WorkersData struct { Data []*WorkerData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WorkersData) Descriptor
deprecated
added in
v0.1.0
func (*WorkersData) Descriptor() ([]byte, []int)
Deprecated: Use WorkersData.ProtoReflect.Descriptor instead.
func (*WorkersData) GetData ¶ added in v0.1.0
func (x *WorkersData) GetData() []*WorkerData
func (*WorkersData) ProtoMessage ¶ added in v0.1.0
func (*WorkersData) ProtoMessage()
func (*WorkersData) ProtoReflect ¶ added in v0.1.0
func (x *WorkersData) ProtoReflect() protoreflect.Message
func (*WorkersData) Reset ¶ added in v0.1.0
func (x *WorkersData) Reset()
func (*WorkersData) String ¶ added in v0.1.0
func (x *WorkersData) String() string