Debian Codegraph @

internal/web/examplecert.go

raw symbols SCIP
1 package webscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/
2
3 import (
4 "net/httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/"
5
6 "github.com/d-Rickyy-b/certstream-server-go/internal/modelsscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/"
7 )
8
9 var exampleCertscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleCert. modelsscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/.Entryscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/Entry#
10
11 // exampleFull handles requests to the /full-stream/example.json endpoint.
12 // It returns a JSON representation of the full example certificate.
13 func exampleFullscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleFull().(w httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#, _ *httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Request#) {
14 w.Headerscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#Header().().Setscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Header#Set().("Content-Type", "application/json")
15 w.Writescip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#Write().(exampleCertscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleCert..JSONscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/Entry#JSON().()) //nolint:errcheck
16 }
17
18 // exampleLite handles requests to the /example.json endpoint.
19 // It returns a JSON representation of the lite example certificate.
20 func exampleLitescip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleLite().(w httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#, _ *httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Request#) {
21 w.Headerscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#Header().().Setscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Header#Set().("Content-Type", "application/json")
22 w.Writescip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#Write().(exampleCertscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleCert..JSONLitescip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/Entry#JSONLite().()) //nolint:errcheck
23 }
24
25 // exampleDomains handles requests to the /domains-only/example.json endpoint.
26 // It returns a JSON representation of the domain data.
27 func exampleDomainsscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleDomains().(w httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.ResponseWriterscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#, _ *httpscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Request#) {
28 w.Headerscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#Header().().Setscip-go gomod github.com/golang/go/src go1.25.0 `net/http`/Header#Set().("Content-Type", "application/json")
29 w.Writescip-go gomod github.com/golang/go/src go1.25.0 `net/http`/ResponseWriter#Write().(exampleCertscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleCert..JSONDomainsscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/Entry#JSONDomains().()) //nolint:errcheck
30 }
31
32 // SetExampleCert sets one certificate as the example Cert that is returned by the example endpoints.
33 func SetExampleCertscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/SetExampleCert().(cert modelsscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/.Entryscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/models`/Entry#) {
34 exampleCertscip-go gomod github.com/d-Rickyy-b/certstream-server-go . `github.com/d-Rickyy-b/certstream-server-go/internal/web`/exampleCert. = cert
35 }