Documentation ¶
Index ¶
- func Flags(process *process.Process) map[string]string
- func GetProcess(application string) (*process.Process, error)
- func GetProcessIndefinitely(application string) (*process.Process, error)
- func IsGameOrClient(channel chan bool, game string, client string)
- type Asol
- func (asol *Asol) Authorization() string
- func (asol *Asol) LocalAddress() string
- func (asol *Asol) Match(message *Message)
- func (asol *Asol) NewDeleteRequest(endpoint string) (*http.Request, error)
- func (asol *Asol) NewGetRequest(endpoint string) (*http.Request, error)
- func (asol *Asol) NewPatchRequest(endpoint string, data map[string]interface{}) (*http.Request, error)
- func (asol *Asol) NewPostRequest(endpoint string, data map[string]interface{}) (*http.Request, error)
- func (asol *Asol) NewWebRequest(url string) (*http.Request, error)
- func (asol *Asol) OnClientClose(callback EventCallback)
- func (asol *Asol) OnError(callback ErrorCallback)
- func (asol *Asol) OnLogin(callback EventCallback)
- func (asol *Asol) OnLogout(callback EventCallback)
- func (asol *Asol) OnOpen(callback EventCallback)
- func (asol *Asol) OnReady(callback EventCallback)
- func (asol *Asol) OnReconnect(callback EventCallback)
- func (asol *Asol) OnWebsocketClose(callback EventCallback)
- func (asol *Asol) RawRequest(request *http.Request) ([]byte, error)
- func (asol *Asol) RiotRequest(request *http.Request) (interface{}, error)
- func (asol *Asol) Start()
- func (asol *Asol) WebHeader() http.Header
- func (asol *Asol) WebRequest(request *http.Request) (interface{}, error)
- func (asol *Asol) WebsocketAddress() string
- func (asol *Asol) WebsocketHeader() http.Header
- type ConnectionEventManager
- type ErrorCallback
- type EventCallback
- type GameProcess
- type Login
- type Message
- type MessageType
- type NoRegisteredEventError
- type ProcessNotFoundError
- type Response
- type RiotClient
- type TimeoutError
- type WebClient
- type WebsocketCallback
- type WebsocketEventManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProcessIndefinitely ¶
func IsGameOrClient ¶
Types ¶
type Asol ¶
type Asol struct { Connection *websocket.Conn *GameProcess *RiotClient *WebClient *ConnectionEventManager *WebsocketEventManager // contains filtered or unexported fields }
func (*Asol) Authorization ¶
func (*Asol) LocalAddress ¶ added in v0.0.3
func (*Asol) NewDeleteRequest ¶
func (*Asol) NewGetRequest ¶
func (*Asol) NewPatchRequest ¶
func (*Asol) NewPostRequest ¶
func (*Asol) NewWebRequest ¶ added in v0.0.3
func (*Asol) OnClientClose ¶
func (asol *Asol) OnClientClose(callback EventCallback)
func (*Asol) OnError ¶
func (asol *Asol) OnError(callback ErrorCallback)
func (*Asol) OnLogin ¶
func (asol *Asol) OnLogin(callback EventCallback)
func (*Asol) OnLogout ¶
func (asol *Asol) OnLogout(callback EventCallback)
func (*Asol) OnOpen ¶
func (asol *Asol) OnOpen(callback EventCallback)
func (*Asol) OnReady ¶
func (asol *Asol) OnReady(callback EventCallback)
func (*Asol) OnReconnect ¶
func (asol *Asol) OnReconnect(callback EventCallback)
func (*Asol) OnWebsocketClose ¶
func (asol *Asol) OnWebsocketClose(callback EventCallback)
func (*Asol) RiotRequest ¶
func (*Asol) WebsocketAddress ¶
func (*Asol) WebsocketHeader ¶ added in v0.0.3
type ConnectionEventManager ¶
type ConnectionEventManager struct {
// contains filtered or unexported fields
}
type ErrorCallback ¶
type ErrorCallback func(error)
type EventCallback ¶
type EventCallback func(*Asol)
type GameProcess ¶
type GameProcess struct {
// contains filtered or unexported fields
}
func NewGameProcess ¶
func NewGameProcess() *GameProcess
func (*GameProcess) Password ¶
func (game *GameProcess) Password() string
func (*GameProcess) Path ¶
func (game *GameProcess) Path() string
func (*GameProcess) Port ¶
func (game *GameProcess) Port() string
func (*GameProcess) Username ¶
func (game *GameProcess) Username() string
type MessageType ¶
type MessageType float64
const ( Welcome MessageType = 0 Prefix MessageType = 1 Call MessageType = 2 CallResult MessageType = 3 CallError MessageType = 4 Subscribe MessageType = 5 Unsubscribe MessageType = 6 Publish MessageType = 7 Event MessageType = 8 )
type NoRegisteredEventError ¶
type NoRegisteredEventError struct { }
func (*NoRegisteredEventError) Error ¶
func (error *NoRegisteredEventError) Error() string
type ProcessNotFoundError ¶
type ProcessNotFoundError struct {
Process string
}
func (*ProcessNotFoundError) Error ¶
func (error *ProcessNotFoundError) Error() string
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) UnmarshalJSON ¶
type RiotClient ¶
func NewRiotClient ¶
func NewRiotClient() *RiotClient
type TimeoutError ¶
type TimeoutError struct {
Process string
}
func (*TimeoutError) Error ¶
func (error *TimeoutError) Error() string
type WebClient ¶
func NewWebClient ¶
func NewWebClient() *WebClient
type WebsocketCallback ¶
type WebsocketEventManager ¶
type WebsocketEventManager struct {
// contains filtered or unexported fields
}
func (*WebsocketEventManager) OnMessage ¶
func (wem *WebsocketEventManager) OnMessage(uri string, method string, callback WebsocketCallback) WebsocketCallback
func (*WebsocketEventManager) Registered ¶
func (wem *WebsocketEventManager) Registered() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.