From 3ecfc012e2db8b464596faf2c3bd4db1cab8697b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 7 May 2024 11:51:34 +0200 Subject: Discovery: Implement search and do not return keywords This patch implements search by adding a second argument to DiscoOrganizations and DiscoServers. A search string of = "" returns everything. This also makes the subset that is returned to the client even fewer, no keywords. --- types/discovery/discovery.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'types/discovery') diff --git a/types/discovery/discovery.go b/types/discovery/discovery.go index da029e7..a6be5bf 100644 --- a/types/discovery/discovery.go +++ b/types/discovery/discovery.go @@ -17,9 +17,6 @@ type Organization struct { DisplayName MapOrString `json:"display_name,omitempty"` // OrgID is the organization ID for the server OrgID string `json:"org_id"` - // KeywordList is the list of keywords - // Omitted if none is defined - KeywordList MapOrString `json:"keyword_list,omitempty"` } // Servers is the type that defines the upstream discovery format for the list of servers @@ -35,8 +32,6 @@ type Server struct { BaseURL string `json:"base_url"` // DisplayName is the display name of the server, omitted if empty DisplayName MapOrString `json:"display_name,omitempty"` - // DisplayName are the keywords of the server, omitted if empty - KeywordList MapOrString `json:"keyword_list,omitempty"` // Type is the type of the server, "secure_internet" or "institute_access" Type string `json:"server_type"` } -- cgit v1.2.3