http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalServer

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

LocalServer represents a local HTTP server

func NewLocalServer

func NewLocalServer(tlsCAPath, tlsCertPath, tlsKeyPath, apiAddress, bindAddr string, l hclog.Logger) *LocalServer

NewLocalServer creates a new local HTTP server which can be used to expose gRPC server methods with JSON

func (*LocalServer) Close

func (l *LocalServer) Close() error

Close all connections and shutdown the server

func (*LocalServer) Serve

func (l *LocalServer) Serve() error

Serve starts serving traffic Does not block

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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