Files
apinto/router/employee.go
黄孟柱 a10d4b53a0 init
2021-07-20 11:11:39 +08:00

38 lines
555 B
Go

package router
func NewEmployee(id string, name string, driver string, config string) *Employee {
return &Employee{
id: id,
name: name,
driver: driver,
config: config,
}
}
type Employee struct {
id string
name string
driver string
config string
}
func (e *Employee) Technique() []string {
return []string{}
}
func (e *Employee) ID() string {
return e.id
}
func (e *Employee) Name() string {
return e.name
}
func (e *Employee) Driver() string {
return e.driver
}
func (e *Employee) Config() string {
return e.config
}