restapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CtxKeyCredentials = ctxKey(1)

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials(ctx context.Context) qc.Credentials

func NewServer

func NewServer(coordinator *qc.QueryCoordinator, config ServerConfig) *http.Server

Types

type CoordinatorService

type CoordinatorService struct {
	Coordinator *qc.QueryCoordinator
}

func (CoordinatorService) ClusterNamesGet

func (CoordinatorService) NewError

NewError handles not-error returned by 'action' methods

func (CoordinatorService) RawSQLPost

type SecurityHandler

type SecurityHandler struct {
}

func (SecurityHandler) HandleBasicAuth

func (s SecurityHandler) HandleBasicAuth(
	ctx context.Context,
	_ string,
	t gs.BasicAuth,
) (context.Context, error)

type ServerConfig

type ServerConfig struct {
	Listen               string
	Timeout, IdleTimeout time.Duration
	Log                  *app.Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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