Skip to content

UserFindByCustomSearch

Samuel Grant edited this page Jun 23, 2020 · 1 revision

Remarks

Search for a user using their custom keyset (Key Value pair)

Signature

Params

Name Type Description
ident string Column name to search
pattern string Value to look for (not tested: Wildcard may work)

Returns

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
}

Example

qres, user, err := client.UserFindByCustomSearch("ident", "pattern")
if err != nil || !qres.IsSuccess() {
  // Handle error or rejected server query 
}
  

Clone this wiki locally