add username to our trip
This commit is contained in:
@@ -21,15 +21,16 @@ type DBObject interface {
|
||||
GetID() string
|
||||
GetName() string
|
||||
UpToDate()
|
||||
VerifyAuth(PeerID string, groups []string) bool
|
||||
VerifyAuth(username string, PeerID string, groups []string) bool
|
||||
Deserialize(j map[string]interface{}, obj DBObject) DBObject
|
||||
Serialize(obj DBObject) map[string]interface{}
|
||||
GetAccessor(peerID string, groups []string, caller *tools.HTTPCaller) Accessor
|
||||
GetAccessor(username string, peerID string, groups []string, caller *tools.HTTPCaller) Accessor
|
||||
}
|
||||
|
||||
// Accessor is an interface that defines the basic methods for an Accessor
|
||||
type Accessor interface {
|
||||
GetType() tools.DataType
|
||||
GetUser() string
|
||||
GetPeerID() string
|
||||
GetGroups() []string
|
||||
GetLogger() *zerolog.Logger
|
||||
|
||||
Reference in New Issue
Block a user