http

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definitions

type Definitions struct {
	CORSStrict     bool          `toml:"cors_strict" json:"cors_strict" default:"true"`
	DisableAuth    bool          `toml:"disable_auth,omitempty" json:"disable_auth" default:"false"`
	BasePath       string        `toml:"base_path" json:"base_path"`
	ReadTimeout    time.Duration `toml:"read_timeout" json:"read_timeout" default:"15s"`
	WriteTimeout   time.Duration `toml:"write_timeout" json:"write_timeout" default:"15s"`
	IdleTimeout    time.Duration `toml:"idle_timeout" json:"idle_timeout" default:"60s"`
	MaxHeaderBytes int           `toml:"max_header_bytes" json:"max_header_bytes" default:"1048576"`
}

type Server

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

func New

func New() *Server

func (*Server) Info

func (s *Server) Info() []logger_api.Attribute

func (*Server) Initialize

func (s *Server) Initialize(ctx context.Context, opt *plugin.ServiceOptions) error

func (*Server) Name

func (s *Server) Name() string

func (*Server) Run

func (s *Server) Run(_ context.Context, _ interface{}) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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