Documentation ¶
Index ¶
- Constants
- Variables
- func CheckError(err error, name string)
- func CreateRandomBlock(size uint) []byte
- func DecodeConnect(data []byte) connectionResponse
- func DecodeMessage(data []byte) amf.Object
- func GetTimestamp() uint32
- func Handshake(c net.Conn, br *bufio.Reader, bw *bufio.Writer, timeout time.Duration) (err error)
- func InvokeIdGenerator(idChannel chan<- int)
- func StartHeartbeat(accountID int, sessionToken, dsid string, writeChan chan<- []byte, ...)
- type LookupResponse
- type MessageLookup
- type RTMPSClient
- func (client RTMPSClient) BlockingRequest(destination string, operation interface{}, body interface{}, timeout int) (amf.Object, error)
- func (client *RTMPSClient) Connect() (err error)
- func (client *RTMPSClient) Dial(dialurl string) error
- func (client RTMPSClient) GetNextID() int
- func (client *RTMPSClient) Login(username, password, clientVersion string) (err error)
- func (client *RTMPSClient) SafeWrite(data []byte)
- type ServerInfo
Constants ¶
View Source
const ( RIOT_SIG_SIZE = 1528 RTMP_SIG_SIZE = 1536 RTMP_LARGE_HEADER_SIZE = 12 SHA256_DIGEST_LENGTH = 32 RTMP_DEFAULT_CHUNKSIZE = 128 MAX_TIMESTAMP = uint32(2000000000) )
Variables ¶
View Source
var LeagueServerInfo = map[string]ServerInfo{ "NA": ServerInfo{ Region: "NA", Platform: "NA1", Name: "North America", Server: url.URL{ Host: "prod.na1.lol.riotgames.com", }, LoginQueue: url.URL{ Scheme: "https", Host: "lq.na1.lol.riotgames.com", }, }, "EUW": ServerInfo{ Region: "EUW", Platform: "EUW1", Name: "Europe West", Server: url.URL{ Host: "prod.eu.lol.riotgames.com", }, LoginQueue: url.URL{ Scheme: "https", Host: "lq.eu.lol.riotgames.com", }, }, "EUNE": ServerInfo{ Region: "EUNE", Platform: "EUN1", Name: "Europe Nordic & East", Server: url.URL{ Host: "prod.eun1.lol.riotgames.com", }, LoginQueue: url.URL{ Scheme: "https", Host: "lq.eun1.lol.riotgames.com", }, }, }
Functions ¶
func CreateRandomBlock ¶
func DecodeConnect ¶
func DecodeConnect(data []byte) connectionResponse
func DecodeMessage ¶
func DecodeMessage(data []byte) amf.Object
func InvokeIdGenerator ¶
func InvokeIdGenerator(idChannel chan<- int)
func StartHeartbeat ¶
Types ¶
type LookupResponse ¶
type LookupResponse struct { Err error Message amf.Object }
type MessageLookup ¶
type MessageLookup struct { MessageID int ReturnChan chan LookupResponse }
func NewMessageLookup ¶
func NewMessageLookup(id int) MessageLookup
type RTMPSClient ¶
type RTMPSClient struct {
// contains filtered or unexported fields
}
func (RTMPSClient) BlockingRequest ¶
func (client RTMPSClient) BlockingRequest(destination string, operation interface{}, body interface{}, timeout int) (amf.Object, error)
func (*RTMPSClient) Connect ¶
func (client *RTMPSClient) Connect() (err error)
func (*RTMPSClient) Dial ¶
func (client *RTMPSClient) Dial(dialurl string) error
func (RTMPSClient) GetNextID ¶
func (client RTMPSClient) GetNextID() int
func (*RTMPSClient) Login ¶
func (client *RTMPSClient) Login(username, password, clientVersion string) (err error)
func (*RTMPSClient) SafeWrite ¶
func (client *RTMPSClient) SafeWrite(data []byte)
Click to show internal directories.
Click to hide internal directories.