Reorganize instrument code
This commit is contained in:
parent
8446c116a8
commit
455fb65e77
4 changed files with 22 additions and 18 deletions
|
@ -2,7 +2,14 @@ package instrument
|
|||
|
||||
import "time"
|
||||
|
||||
type Instrument interface {
|
||||
Visit(section string, id string, search string, fmt string)
|
||||
Duration(section string, search string, duration time.Duration)
|
||||
type RequestData struct {
|
||||
Section string
|
||||
ID string
|
||||
Search string
|
||||
Fmt string
|
||||
Duration time.Duration
|
||||
}
|
||||
|
||||
type Instrument interface {
|
||||
Request(req RequestData)
|
||||
}
|
||||
|
|
Reference in a new issue