Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAccount ¶
func DeleteNode ¶
func DeleteProfile ¶
func DeleteUser ¶
func FindAccount ¶
Types ¶
type Account ¶
type Account struct { Username string `json:"username"` Password string `json:"password"` IsAdmin bool `json:"isAdmin"` }
func (*Account) PasswordIsCorrect ¶
type Node ¶
type Profile ¶
type Profile struct { Id primitive.ObjectID `json:"id" bson:"_id"` Name string `json:"name"` Inbound *inboundDetourConfig `json:"inbound"` Outbound *conf.OutboundDetourConfig `json:"outbound"` NodeId primitive.ObjectID `json:"nodeId" bson:"nodeId"` }
func FindProfile ¶
func FindProfiles ¶
type User ¶
type User struct { Id primitive.ObjectID `json:"id" bson:"_id"` Name string `json:"name"` Email string `json:"email"` Level uint32 `json:"level"` BillingDate *time.Time `json:"billingDate" bson:"billingDate"` Account map[string]json.RawMessage `json:"account"` Profiles map[primitive.ObjectID]string `json:"profiles"` }
func (*User) RemoveProfile ¶
type UserResponse ¶
type UserResponse struct { User User `json:"user,omitempty"` Profiles []Profile `json:"profiles,omitempty"` }
func UserProfilesAggregateQuery ¶
func UserProfilesAggregateQuery(skip int64, limit int64) ([]UserResponse, error)
Click to show internal directories.
Click to hide internal directories.