rest

package
v0.0.0-...-914df79 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package rest implements a REST API for gh-sql, mimicking the GitHub REST API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(opts Options) http.Handler

Handler returns the request handler for the REST API server.

Types

type Options

type Options struct {
	DB *ent.Client
}

Options are the server options which modify its behaviour.

Jump to

Keyboard shortcuts

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