-
Notifications
You must be signed in to change notification settings - Fork 0
/
exported.go
51 lines (38 loc) · 1.51 KB
/
exported.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package exported
import (
"github.com/furynet/furymod/modules/service/types"
)
type (
// RequestContext defines a context which holds request-related data
RequestContext = types.RequestContext
// RequestContextState represents the request context state
RequestContextState = types.RequestContextState
// ResponseCallback defines the response callback interface
ResponseCallback = types.ResponseCallback
// StateCallback defines the state callback interface
StateCallback = types.StateCallback
// ModuleService defines the module service interface
ModuleService = types.ModuleService
)
const (
// RUNNING indicates the request context is running
RUNNING = types.RUNNING
// PAUSED indicates the request context is paused
PAUSED = types.PAUSED
// COMPLETED indicates the request context is completed
COMPLETED = types.COMPLETED
// RegisterModuleName exports types.RegisterModuleName
RegisterModuleName = types.RegisterModuleName
// OraclePriceServiceName exports types.OraclePriceServiceName
OraclePriceServiceName = types.OraclePriceServiceName
// PATH_BODY exports types.PATH_BODY
PATH_BODY = types.PATH_BODY
)
var (
// RequestContextStateFromString exports types.RequestContextStateFromString
RequestContextStateFromString = types.RequestContextStateFromString
// ValidateServiceName exports types.ValidateServiceName
ValidateServiceName = types.ValidateServiceName
// OraclePriceServiceProvider exports types.OraclePriceServiceProvider
OraclePriceServiceProvider = types.OraclePriceServiceProvider
)