-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinterfaces.go
36 lines (27 loc) · 1.03 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package gorpc
type IHandler interface {
Caption() string
Description() string
}
type IHandlerParameters interface {
Fork(m map[string]interface{}) interface{}
Parse() error
IsExists([]string, string) bool
GetString([]string, string) (string, error)
GetBool([]string, string) (bool, error)
GetUint([]string, string) (uint, error)
GetByte([]string, string) (byte, error)
GetUint8([]string, string) (uint8, error)
GetUint16([]string, string) (uint16, error)
GetUint32([]string, string) (uint32, error)
GetUint64([]string, string) (uint64, error)
GetInt([]string, string) (int, error)
GetInt8([]string, string) (int8, error)
GetInt16([]string, string) (int16, error)
GetInt32([]string, string) (int32, error)
GetInt64([]string, string) (int64, error)
GetFloat32([]string, string) (float32, error)
GetFloat64([]string, string) (float64, error)
TraverseSlice(path []string, name string, h func(i int, v interface{}) error) (bool, error)
TraverseMap(path []string, name string, h func(k string, v interface{}) error) (bool, error)
}