Skip to content
Snippets Groups Projects
user.go 243 B
Newer Older
  • Learn to ignore specific revisions
  • package rbac
    
    import "github.com/google/uuid"
    
    // User represents an User which is managed by rbac
    type User interface {
    	ID() uuid.UUID
    	Name() string
    	GetRoles() map[string]string
    	GetPassword() string
    	GetToken() string
    	SetToken(string)
    }