roots

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 6 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 provides server-side roots functionality

func NewServer

func NewServer(base *base.Base) *Server

NewServer creates a new Server

func (*Server) ListRoots

func (s *Server) ListRoots(ctx context.Context) ([]types.Root, error)

ListRoots requests the list of available roots from the client

func (*Server) OnRootsChanged

func (s *Server) OnRootsChanged(callback func())

OnRootsChanged registers a callback to be called when the roots list changes

Jump to

Keyboard shortcuts

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