Documentation ¶
Index ¶
- func ComposeStringToSign(method, uri string, headers, queries map[string]string) string
- func GenQueryString(variables map[string]interface{}) string
- func GetAuthorization(accessKeyId, accessKeySecret, stringToSign string) string
- func GetQueryString(queryMap map[string]string) string
- func GetValueOrDefault(value ...string) string
- func IsArray(value interface{}) bool
- func IsString(value interface{}) bool
- func RandStringImpr(n int) string
- func RandomString(length int) string
- func StringContains(s []string, searchTerm string) bool
- type EventReceiver
- type EventReceives
- type WebSocketEventHub
- func (eventHub *WebSocketEventHub) AddReceiver(eventCode string, onSuccess func(msg []byte), onError func(err error))
- func (eventHub *WebSocketEventHub) CreateAuthentication(eventCode string, websocketHost string, token string) bool
- func (eventHub *WebSocketEventHub) CreateManagement(eventCode string, websocketHost string, token string) bool
- func (eventHub *WebSocketEventHub) StartReceive(eventCode string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeStringToSign ¶ added in v3.0.10
func GenQueryString ¶
func GetAuthorization ¶ added in v3.0.10
func GetQueryString ¶
func GetValueOrDefault ¶
func RandStringImpr ¶
func RandomString ¶
func StringContains ¶
Types ¶
type EventReceiver ¶ added in v3.0.10
type EventReceives ¶ added in v3.0.10
func NewEventReceives ¶ added in v3.0.10
func NewEventReceives() *EventReceives
type WebSocketEventHub ¶ added in v3.0.10
type WebSocketEventHub struct { Connections map[string]*websocket.Conn // contains filtered or unexported fields }
func NewWebSocketEvent ¶ added in v3.0.10
func NewWebSocketEvent() *WebSocketEventHub
NewWebSocketEvent
func (*WebSocketEventHub) AddReceiver ¶ added in v3.0.10
func (eventHub *WebSocketEventHub) AddReceiver(eventCode string, onSuccess func(msg []byte), onError func(err error))
func (*WebSocketEventHub) CreateAuthentication ¶ added in v3.0.10
func (eventHub *WebSocketEventHub) CreateAuthentication(eventCode string, websocketHost string, token string) bool
func (*WebSocketEventHub) CreateManagement ¶ added in v3.0.10
func (eventHub *WebSocketEventHub) CreateManagement(eventCode string, websocketHost string, token string) bool
func (*WebSocketEventHub) StartReceive ¶ added in v3.0.10
func (eventHub *WebSocketEventHub) StartReceive(eventCode string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.