Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1lann/lol-replay
/ functions
Functions
115 in github.com/1lann/lol-replay
⨍
Functions
115
◇
Types & classes
27
↓ 35 callers
Method
Unlock
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 callers
Method
Write
(data []byte)
replay/replay.go:57
↓ 27 callers
Method
Lock
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 callers
Function
newError
(op string, err error)
record/errors.go:24
↓ 8 callers
Method
UnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:1924
↓ 8 callers
Method
WriteTo
WriteTo encodes the ChunkInfo as JSON and writes it to a writer.
recording/recording.go:231
↓ 8 callers
Method
writeHeader
()
recording/recording.go:176
↓ 7 callers
Method
RetrieveGameInfo
RetrieveGameInfo retrieves the recorded game's basic information.
recording/retrieve.go:69
↓ 6 callers
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:1889
↓ 5 callers
Method
storeChunk
(frame int)
record/retrieve.go:127
↓ 4 callers
Method
HasGameMetadata
HasGameMetadata returns whether or not the metadata of the game has already been written to the recording or not.
recording/retrieve.go:32
↓ 4 callers
Method
IsComplete
IsComplete returns whether or not the recording has been declared as being complete or not.
recording/retrieve.go:75
↓ 4 callers
Method
LastWriteTime
LastWriteTime returns the last time data was written to the recording.
recording/retrieve.go:80
↓ 4 callers
Method
RetrieveFirstChunkInfo
RetrieveFirstChunkInfo retrieves the chunk info that should be returned first to the client.
recording/retrieve.go:119
↓ 4 callers
Method
RetrieveLastChunkInfo
RetrieveLastChunkInfo retrieves the chunk info that should be returned after FirstChunkInfo.
recording/retrieve.go:128
↓ 4 callers
Function
requestURL
(url string)
record/retrieve.go:43
↓ 4 callers
Method
writeToStack
(rd io.Reader)
recording/recording.go:218
↓ 3 callers
Method
HasWritten
()
replay/replay.go:67
↓ 3 callers
Function
newHTTPWriterPipe
(w http.ResponseWriter, contentType string)
replay/replay.go:52
↓ 3 callers
Function
requestURLBytes
(url string)
record/retrieve.go:73
↓ 3 callers
Method
retrieveLastChunkInfo
()
record/retrieve.go:179
↓ 3 callers
Method
storeKeyFrame
(frame int)
record/retrieve.go:153
↓ 2 callers
Method
HasChunk
HasChunk returns whether or not the specified chunk ID already exists in the recording or not.
recording/retrieve.go:12
↓ 2 callers
Method
HasKeyFrame
HasKeyFrame returns whether or not the specified keyframe already exists in the recording or not.
recording/retrieve.go:22
↓ 2 callers
Method
HasUserMetadata
HasUserMetadata returns whether or not the user metadata has already been written to the recording or not.
recording/retrieve.go:41
↓ 2 callers
Method
Len
()
server/server.go:36
↓ 2 callers
Method
RetrieveChunkTo
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 callers
Method
RetrieveGameMetadataTo
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 callers
Method
RetrieveKeyFrameTo
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 callers
Method
RetrieveUserMetadata
RetrieveUserMetadata retrieves the arbitrary user data stored by StoreUserMetadata into metadata.
recording/retrieve.go:50
↓ 2 callers
Function
capitalize
(str string)
server/view.go:244
↓ 2 callers
Function
cleanUp
recordingsMutex must be Locked before cleanUp is called.
server/monitor.go:125
↓ 2 callers
Function
getQueue
(id int)
server/view.go:289
↓ 2 callers
Method
readHeaderUnit16
(offset int)
recording/recording.go:113
↓ 2 callers
Method
retrieveMetadata
()
record/retrieve.go:110
↓ 1 callers
Method
DeclareComplete
DeclareComplete declares the recording as a complete recording.
recording/store.go:25
↓ 1 callers
Function
GetPlatformVersion
GetPlatformVersion returns the current version of the specified platform.
record/retrieve.go:96
↓ 1 callers
Method
MarshalJSON
()
recording/recording_ffjson.go:1877
↓ 1 callers
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
record/retrieve_ffjson.go:26
↓ 1 callers
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:28
↓ 1 callers
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:638
↓ 1 callers
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:1031
↓ 1 callers
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
recording/recording_ffjson.go:1170
↓ 1 callers
Method
StoreChunk
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 callers
Method
StoreFirstChunkInfo
StoreFirstChunkInfo stores the chunk info that should be returned first to the client.
recording/store.go:107
↓ 1 callers
Method
StoreGameInfo
StoreGameInfo stores the game's basic information to the file.
recording/store.go:67
↓ 1 callers
Method
StoreGameMetadata
StoreGameMetadata stores the game metadata to the file.
recording/store.go:76
↓ 1 callers
Method
StoreKeyFrame
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 callers
Method
StoreLastChunkInfo
StoreLastChunkInfo stores the chunk info that should be returned after FirstChunkInfo.
recording/store.go:117
↓ 1 callers
Method
StoreUserMetadata
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 callers
Method
UnmarshalJSON
(input []byte)
recording/recording_ffjson.go:1919
↓ 1 callers
Method
UnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
record/retrieve_ffjson.go:61
↓ 1 callers
Method
UnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:105
↓ 1 callers
Method
UnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:700
↓ 1 callers
Method
UnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:1054
↓ 1 callers
Method
UnmarshalJSONFFLexer
(fs *fflib.FFLexer, state fflib.FFParseState)
recording/recording_ffjson.go:1292
↓ 1 callers
Function
aOrAn
(word string)
server/view.go:248
↓ 1 callers
Method
currentGameInfo
(apiKey string)
server/monitor.go:252
↓ 1 callers
Method
generateGzip
()
server/assets.go:33
↓ 1 callers
Function
getPlayerArg
(summonerID string, summonerName string, championID int, info recording.GameInfo)
server/view.go:98
↓ 1 callers
Function
getRenderArg
(r *http.Request, currentPage int)
server/view.go:137
↓ 1 callers
Method
getStartupFrames
(meta metadata)
record/record.go:118
↓ 1 callers
Method
handleFirstChunk
(chunk recording.ChunkInfo)
record/record.go:243
↓ 1 callers
Method
handleResumption
(chunk recording.ChunkInfo)
record/record.go:188
↓ 1 callers
Function
isNumber
(str string)
server/server.go:46
↓ 1 callers
Function
loadRecordGameFile
(resume bool, keyName string)
server/monitor.go:152
↓ 1 callers
Function
loadRecordings
(dir []os.FileInfo, dirName string)
server/server.go:188
↓ 1 callers
Function
maintainStaticData
()
server/riot_static.go:38
↓ 1 callers
Function
makePages
(numPages int)
server/view.go:236
↓ 1 callers
Function
monitorPlayers
()
server/monitor.go:69
↓ 1 callers
Function
readConfiguration
(location string)
server/config.go:29
↓ 1 callers
Method
readHeader
()
recording/recording.go:134
↓ 1 callers
Method
recordFrames
(resumption bool)
record/record.go:268
↓ 1 callers
Function
recordGame
(info gameInfoMetadata, resume bool)
server/monitor.go:187
↓ 1 callers
Function
requestOnceURL
(url string)
record/retrieve.go:26
↓ 1 callers
Function
serveView
(w http.ResponseWriter, r *http.Request)
server/view.go:48
↓ 1 callers
Method
storeChunkInfo
(firstChunkID, firstKeyFrame int, chunk recording.ChunkInfo)
record/record.go:335
↓ 1 callers
Method
storeChunksAndFrames
(chunk recording.ChunkInfo, lastChunkID, firstChunkID, lastKeyFrame, firstKeyFrame int)
record/record.go:209
↓ 1 callers
Function
updateChampions
()
server/riot_static.go:76
↓ 1 callers
Function
updateVersion
()
server/riot_static.go:47
↓ 1 callers
Method
waitForFirstChunk
()
record/record.go:153
↓ 1 callers
Function
writeLastGames
(skip int, games int, r *http.Request, w io.Writer)
server/api.go:31
Method
Error
Error formats the error with its stack into a string.
record/errors.go:15
Function
IsValidPlatform
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
Method
Less
(i, j int)
server/server.go:38
Method
MarshalJSON
()
record/retrieve_ffjson.go:14
Method
MarshalJSON
()
recording/recording_ffjson.go:16
Method
MarshalJSON
()
recording/recording_ffjson.go:626
Method
MarshalJSON
()
recording/recording_ffjson.go:1019
Method
MarshalJSON
()
recording/recording_ffjson.go:1158
Function
NewRecording
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
Function
Record
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
Function
Router
Router returns a http.Handler that handles requests for recorded data.
replay/replay.go:248
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
server/server.go:76
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
server/assets.go:18
Method
Swap
(i, j int)
server/server.go:37
Method
UnmarshalJSON
(input []byte)
record/retrieve_ffjson.go:56
Method
UnmarshalJSON
(input []byte)
recording/recording_ffjson.go:100
Method
UnmarshalJSON
(input []byte)
recording/recording_ffjson.go:695
Method
UnmarshalJSON
(input []byte)
recording/recording_ffjson.go:1049
next →
1–100 of 115, ranked by callers