Documentation ¶
Index ¶
- Variables
- func Register(myPre string, handler ICreateHandler) error
- type Admin
- func (a *Admin) Delete(profession, name string) (interface{}, error)
- func (a *Admin) DriverInfo(profession, driver string) (*eosc.DriverDetail, error)
- func (a *Admin) Drivers(profession string) ([]*eosc.DriverInfo, error)
- func (a *Admin) DriversItem(profession string) ([]*eosc.Item, error)
- func (a *Admin) GetEmployee(profession, name string) (interface{}, error)
- func (a *Admin) ListEmployees(profession string) ([]interface{}, error)
- func (a *Admin) ListProfessions() []*eosc.ProfessionInfo
- func (a *Admin) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (a *Admin) Update(profession, name, driver string, data []byte) (interface{}, error)
- type ICreateHandler
- type WorkerInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Register ¶
func Register(myPre string, handler ICreateHandler) error
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
func NewAdmin ¶
func NewAdmin(professions eosc.IProfessions, workers eosc.IWorkersData) *Admin
func (*Admin) DriverInfo ¶
func (a *Admin) DriverInfo(profession, driver string) (*eosc.DriverDetail, error)
func (*Admin) GetEmployee ¶
func (*Admin) ListEmployees ¶
func (*Admin) ListProfessions ¶
func (a *Admin) ListProfessions() []*eosc.ProfessionInfo
type ICreateHandler ¶ added in v0.3.3
type WorkerInfo ¶
type WorkerInfo map[string]interface{}
Click to show internal directories.
Click to hide internal directories.