Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2026 Changes in this version + const PatchOperationAdd + const PatchOperationRemove + const PatchOperationReplace + type AuthenticationScheme struct + Description string + DocumentationURI optional.String + Name string + Primary bool + SpecURI optional.String + Type AuthenticationType + type AuthenticationType string + const AuthenticationTypeHTTPBasic + const AuthenticationTypeHTTPDigest + const AuthenticationTypeOauth + const AuthenticationTypeOauth2 + const AuthenticationTypeOauthBearerToken + type ListRequestParams struct + Count int + FilterValidator *filter.Validator + StartIndex int + type Logger interface + Error func(args ...interface{}) + type Meta struct + Created *time.Time + LastModified *time.Time + Version string + type Page struct + Resources []Resource + TotalResults int + type PatchOperation struct + Op string + Path *filter.Path + Value interface{} + type Resource struct + Attributes ResourceAttributes + ExternalID optional.String + ID string + Meta Meta + type ResourceAttributes map[string]interface + type ResourceHandler interface + Create func(r *http.Request, attributes ResourceAttributes) (Resource, error) + Delete func(r *http.Request, id string) error + Get func(r *http.Request, id string) (Resource, error) + GetAll func(r *http.Request, params ListRequestParams) (Page, error) + Patch func(r *http.Request, id string, operations []PatchOperation) (Resource, error) + Replace func(r *http.Request, id string, attributes ResourceAttributes) (Resource, error) + type ResourceType struct + Description optional.String + Endpoint string + Handler ResourceHandler + ID optional.String + Name string + Schema schema.Schema + SchemaExtensions []SchemaExtension + type SchemaExtension struct + Required bool + Schema schema.Schema + type Server struct + func NewServer(args *ServerArgs, opts ...ServerOption) (Server, error) + func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServerArgs struct + ResourceTypes []ResourceType + ServiceProviderConfig *ServiceProviderConfig + type ServerOption func(*Server) + func WithLogger(logger Logger) ServerOption + type ServiceProviderConfig struct + AuthenticationSchemes []AuthenticationScheme + DocumentationURI optional.String + MaxResults int + SupportFiltering bool + SupportPatch bool