api

package
v1.1.957 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharServer

type SharServer struct {
	// contains filtered or unexported fields
}

SharServer provides API endpoints for SHAR

func New

func New(ns *storage.Nats, panicRecovery bool, apiAuthZFn authz.APIFunc, apiAuthNFn authn.Check, telemetryCfg telemetry.Config) (*SharServer, error)

New creates a new instance of the SHAR API server

func (*SharServer) Listen

func (s *SharServer) Listen() error

Listen starts the SHAR API server listening to incoming requests

func (*SharServer) Shutdown

func (s *SharServer) Shutdown()

Shutdown gracefully shuts down the SHAR API server and Engine

Jump to

Keyboard shortcuts

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