server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the HTTP server for the kirocc proxy.

func New

func New(authMgr messagesapp.TokenGetter, apiKey string, client kiroclient.Client, opts ...ServerOption) *Server

New creates a new Server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the http.Handler for the server.

type ServerOption added in v0.0.7

type ServerOption func(*Server)

ServerOption configures a Server.

func WithCapture added in v0.1.0

func WithCapture(enabled bool) ServerOption

WithCapture enables upstream capture logging in the messages service.

func WithOTel added in v0.0.7

func WithOTel(bodyLimit int) ServerOption

WithOTel enables OpenTelemetry tracing middleware.

Jump to

Keyboard shortcuts

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