Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for listCollection (0.1 sec)

  1. pkg/ctrlz/topics/collection.go

    type listContext struct {
    	Collection string
    	Keys       []string
    	Error      string
    }
    
    func (c *collectionTopic) handleCollection(w http.ResponseWriter, _ *http.Request, collection string) {
    	k, err := c.listCollection(collection)
    	context := listContext{}
    	if err == nil {
    		context.Collection = collection
    		context.Keys = k
    	} else {
    		context.Error = err.Error()
    	}
    	fw.RenderHTML(w, c.listTmpl, context)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top