MCPcopy Create free account

hub / github.com/1lann/lol-replay / functions

Functions115 in github.com/1lann/lol-replay

↓ 35 callersMethodUnlock
Unlock unlocks the recording that was previously locked to allow reads or writes to the recording. Ensure that Unlock is called after Lock is called.
recording/store.go:20
↓ 29 callersMethodWrite
(data []byte)
replay/replay.go:57
↓ 27 callersMethodLock
Lock locks the recording to disallow any further reads or writes to the recording. This is used to safely close the underlying file without corrupting
recording/store.go:14
↓ 12 callersFunctionnewError
(op string, err error)
record/errors.go:24
↓ 8 callersMethodUnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:1924
↓ 8 callersMethodWriteTo
WriteTo encodes the ChunkInfo as JSON and writes it to a writer.
recording/recording.go:231
↓ 8 callersMethodwriteHeader
()
recording/recording.go:176
↓ 7 callersMethodRetrieveGameInfo
RetrieveGameInfo retrieves the recorded game's basic information.
recording/retrieve.go:69
↓ 6 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:1889
↓ 5 callersMethodstoreChunk
(frame int)
record/retrieve.go:127
↓ 4 callersMethodHasGameMetadata
HasGameMetadata returns whether or not the metadata of the game has already been written to the recording or not.
recording/retrieve.go:32
↓ 4 callersMethodIsComplete
IsComplete returns whether or not the recording has been declared as being complete or not.
recording/retrieve.go:75
↓ 4 callersMethodLastWriteTime
LastWriteTime returns the last time data was written to the recording.
recording/retrieve.go:80
↓ 4 callersMethodRetrieveFirstChunkInfo
RetrieveFirstChunkInfo retrieves the chunk info that should be returned first to the client.
recording/retrieve.go:119
↓ 4 callersMethodRetrieveLastChunkInfo
RetrieveLastChunkInfo retrieves the chunk info that should be returned after FirstChunkInfo.
recording/retrieve.go:128
↓ 4 callersFunctionrequestURL
(url string)
record/retrieve.go:43
↓ 4 callersMethodwriteToStack
(rd io.Reader)
recording/recording.go:218
↓ 3 callersMethodHasWritten
()
replay/replay.go:67
↓ 3 callersFunctionnewHTTPWriterPipe
(w http.ResponseWriter, contentType string)
replay/replay.go:52
↓ 3 callersFunctionrequestURLBytes
(url string)
record/retrieve.go:73
↓ 3 callersMethodretrieveLastChunkInfo
()
record/retrieve.go:179
↓ 3 callersMethodstoreKeyFrame
(frame int)
record/retrieve.go:153
↓ 2 callersMethodHasChunk
HasChunk returns whether or not the specified chunk ID already exists in the recording or not.
recording/retrieve.go:12
↓ 2 callersMethodHasKeyFrame
HasKeyFrame returns whether or not the specified keyframe already exists in the recording or not.
recording/retrieve.go:22
↓ 2 callersMethodHasUserMetadata
HasUserMetadata returns whether or not the user metadata has already been written to the recording or not.
recording/retrieve.go:41
↓ 2 callersMethodLen
()
server/server.go:36
↓ 2 callersMethodRetrieveChunkTo
RetrieveChunkTo retrieves the chunk data for a chunk ID into w. The number of bytes written to w and any errors that have occurred are returned. If th
recording/retrieve.go:138
↓ 2 callersMethodRetrieveGameMetadataTo
RetrieveGameMetadataTo retrieves the recorded game metadata into w. The number of bytes written to w and any errors that have occurred are returned.
recording/retrieve.go:87
↓ 2 callersMethodRetrieveKeyFrameTo
RetrieveKeyFrameTo retrieves the keyframe data into w. The number of bytes written to w and any errors that have occurred are returned. If the chunk I
recording/retrieve.go:171
↓ 2 callersMethodRetrieveUserMetadata
RetrieveUserMetadata retrieves the arbitrary user data stored by StoreUserMetadata into metadata.
recording/retrieve.go:50
↓ 2 callersFunctioncapitalize
(str string)
server/view.go:244
↓ 2 callersFunctioncleanUp
recordingsMutex must be Locked before cleanUp is called.
server/monitor.go:125
↓ 2 callersFunctiongetQueue
(id int)
server/view.go:289
↓ 2 callersMethodreadHeaderUnit16
(offset int)
recording/recording.go:113
↓ 2 callersMethodretrieveMetadata
()
record/retrieve.go:110
↓ 1 callersMethodDeclareComplete
DeclareComplete declares the recording as a complete recording.
recording/store.go:25
↓ 1 callersFunctionGetPlatformVersion
GetPlatformVersion returns the current version of the specified platform.
record/retrieve.go:96
↓ 1 callersMethodMarshalJSON
()
recording/recording_ffjson.go:1877
↓ 1 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
record/retrieve_ffjson.go:26
↓ 1 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:28
↓ 1 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:638
↓ 1 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:1031
↓ 1 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:1170
↓ 1 callersMethodStoreChunk
StoreChunk stores the chunk data for a chunk ID. If the chunk ID already exists in the recording, ErrCannotModify will be returned.
recording/store.go:127
↓ 1 callersMethodStoreFirstChunkInfo
StoreFirstChunkInfo stores the chunk info that should be returned first to the client.
recording/store.go:107
↓ 1 callersMethodStoreGameInfo
StoreGameInfo stores the game's basic information to the file.
recording/store.go:67
↓ 1 callersMethodStoreGameMetadata
StoreGameMetadata stores the game metadata to the file.
recording/store.go:76
↓ 1 callersMethodStoreKeyFrame
StoreKeyFrame stores the keyframe data for a keyframe number. If the key frame already exists in the recording, ErrCannotModify will be returned.
recording/store.go:156
↓ 1 callersMethodStoreLastChunkInfo
StoreLastChunkInfo stores the chunk info that should be returned after FirstChunkInfo.
recording/store.go:117
↓ 1 callersMethodStoreUserMetadata
StoreUserMetadata stores arbitrary data with the recording for convenience. Note that the user metadata is read-only, and thus can only be stored once
recording/store.go:37
↓ 1 callersMethodUnmarshalJSON
(input []byte)
recording/recording_ffjson.go:1919
↓ 1 callersMethodUnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
record/retrieve_ffjson.go:61
↓ 1 callersMethodUnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:105
↓ 1 callersMethodUnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:700
↓ 1 callersMethodUnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:1054
↓ 1 callersMethodUnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:1292
↓ 1 callersFunctionaOrAn
(word string)
server/view.go:248
↓ 1 callersMethodcurrentGameInfo
(apiKey string)
server/monitor.go:252
↓ 1 callersMethodgenerateGzip
()
server/assets.go:33
↓ 1 callersFunctiongetPlayerArg
(summonerID string, summonerName string, championID int, info recording.GameInfo)
server/view.go:98
↓ 1 callersFunctiongetRenderArg
(r *http.Request, currentPage int)
server/view.go:137
↓ 1 callersMethodgetStartupFrames
(meta metadata)
record/record.go:118
↓ 1 callersMethodhandleFirstChunk
(chunk recording.ChunkInfo)
record/record.go:243
↓ 1 callersMethodhandleResumption
(chunk recording.ChunkInfo)
record/record.go:188
↓ 1 callersFunctionisNumber
(str string)
server/server.go:46
↓ 1 callersFunctionloadRecordGameFile
(resume bool, keyName string)
server/monitor.go:152
↓ 1 callersFunctionloadRecordings
(dir []os.FileInfo, dirName string)
server/server.go:188
↓ 1 callersFunctionmaintainStaticData
()
server/riot_static.go:38
↓ 1 callersFunctionmakePages
(numPages int)
server/view.go:236
↓ 1 callersFunctionmonitorPlayers
()
server/monitor.go:69
↓ 1 callersFunctionreadConfiguration
(location string)
server/config.go:29
↓ 1 callersMethodreadHeader
()
recording/recording.go:134
↓ 1 callersMethodrecordFrames
(resumption bool)
record/record.go:268
↓ 1 callersFunctionrecordGame
(info gameInfoMetadata, resume bool)
server/monitor.go:187
↓ 1 callersFunctionrequestOnceURL
(url string)
record/retrieve.go:26
↓ 1 callersFunctionserveView
(w http.ResponseWriter, r *http.Request)
server/view.go:48
↓ 1 callersMethodstoreChunkInfo
(firstChunkID, firstKeyFrame int, chunk recording.ChunkInfo)
record/record.go:335
↓ 1 callersMethodstoreChunksAndFrames
(chunk recording.ChunkInfo, lastChunkID, firstChunkID, lastKeyFrame, firstKeyFrame int)
record/record.go:209
↓ 1 callersFunctionupdateChampions
()
server/riot_static.go:76
↓ 1 callersFunctionupdateVersion
()
server/riot_static.go:47
↓ 1 callersMethodwaitForFirstChunk
()
record/record.go:153
↓ 1 callersFunctionwriteLastGames
(skip int, games int, r *http.Request, w io.Writer)
server/api.go:31
MethodError
Error formats the error with its stack into a string.
record/errors.go:15
FunctionIsValidPlatform
IsValidPlatform returns whether or not a platform is valid (i.e. has an entry in the map of platforms and platform URLs).
record/retrieve.go:90
MethodLess
(i, j int)
server/server.go:38
MethodMarshalJSON
()
record/retrieve_ffjson.go:14
MethodMarshalJSON
()
recording/recording_ffjson.go:16
MethodMarshalJSON
()
recording/recording_ffjson.go:626
MethodMarshalJSON
()
recording/recording_ffjson.go:1019
MethodMarshalJSON
()
recording/recording_ffjson.go:1158
FunctionNewRecording
NewRecording creates a new recording for writing to, or reads an existing recording to read from using the io.ReadWriteSeeker, such as an *os.File.
recording/recording.go:93
FunctionRecord
Record starts a new recording that writes into a *recording.Recording and blocks until the recording ends or an error occurs. Note that partial data m
record/record.go:51
FunctionRouter
Router returns a http.Handler that handles requests for recorded data.
replay/replay.go:248
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
server/server.go:76
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
server/assets.go:18
MethodSwap
(i, j int)
server/server.go:37
MethodUnmarshalJSON
(input []byte)
record/retrieve_ffjson.go:56
MethodUnmarshalJSON
(input []byte)
recording/recording_ffjson.go:100
MethodUnmarshalJSON
(input []byte)
recording/recording_ffjson.go:695
MethodUnmarshalJSON
(input []byte)
recording/recording_ffjson.go:1049
next →1–100 of 115, ranked by callers