mirror of
https://github.com/elyby/chrly.git
synced 2024-12-02 11:40:56 +05:30
20 lines
410 B
Go
20 lines
410 B
Go
package queue
|
|
|
|
import "github.com/elyby/chrly/api/mojang"
|
|
|
|
type Storage interface {
|
|
Get(username string) *mojang.SignedTexturesResponse
|
|
Set(textures *mojang.SignedTexturesResponse)
|
|
}
|
|
|
|
// NilStorage used for testing purposes
|
|
type NilStorage struct {
|
|
}
|
|
|
|
func (*NilStorage) Get(username string) *mojang.SignedTexturesResponse {
|
|
return nil
|
|
}
|
|
|
|
func (*NilStorage) Set(textures *mojang.SignedTexturesResponse) {
|
|
}
|