api

package
v0.0.0-...-1711327 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDomainEndpoints

func AddDomainEndpoints(r *httprouter.Router, db domainQueries, res domainResolver, verify *mjwt.KeyStore)

func AddRecordEndpoints

func AddRecordEndpoints(r *httprouter.Router, db recordQueries, res recordResolver, verify *mjwt.KeyStore)

func NewApiServer

func NewApiServer(db *database.Queries, res *resolver.Resolver, verify *mjwt.KeyStore, authToken string) *httprouter.Router

Types

type AuthCallback

type AuthCallback func(rw http.ResponseWriter, req *http.Request, params httprouter.Params, b AuthClaims)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL