Return pointer instead of object
This commit is contained in:
parent
12099a2847
commit
01b75eb567
@ -4,6 +4,6 @@ import "github.com/josephbmanley/OpenSkins-Common/datatypes"
|
|||||||
|
|
||||||
type Skinstore interface {
|
type Skinstore interface {
|
||||||
Initialize() error
|
Initialize() error
|
||||||
GetSkin(string) (datatypes.Skin, error)
|
GetSkin(string) (*datatypes.Skin, error)
|
||||||
AddSkin(string, []byte) error
|
AddSkin(string, []byte) error
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,6 @@ import "github.com/josephbmanley/OpenSkins-Common/datatypes"
|
|||||||
|
|
||||||
type Userstore interface {
|
type Userstore interface {
|
||||||
Initialize() error
|
Initialize() error
|
||||||
GetUser(uid string) (datatypes.User, error)
|
GetUser(uid string) (*datatypes.User, error)
|
||||||
SetUser(datatypes.User) error
|
SetUser(datatypes.User) error
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user