-
Notifications
You must be signed in to change notification settings - Fork 1
UserFindByCustomSearch
Samuel Grant edited this page Jun 23, 2020
·
1 revision
Search for a user using their custom keyset (Key Value pair)
| Name | Type | Description |
|---|---|---|
| ident | string | Column name to search |
| pattern | string | Value to look for (not tested: Wildcard may work) |
| Type | Description |
|---|---|
| *status | Query Response |
| *User | A user (see below) |
| error |
type User struct {
// Database ID
Cldbid int64
// Unique TS ID
Cluid string
// Last Connection
LastConnected string
LastIP string
ActiveSessionIds []int64
Nickname string
}qres, user, err := client.UserFindByCustomSearch("ident", "pattern")
if err != nil || !qres.IsSuccess() {
// Handle error or rejected server query
}