generic

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context) server.Server

Types

type Handler

type Handler interface {
	Start() error
	Stop() error
}

type Opener

type Opener struct{}

func (*Opener) OpenURL

func (o *Opener) OpenURL(ctx context.Context, u *url.URL) (server.Server, error)

type Server

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

func (*Server) As

func (s *Server) As(i interface{}) bool

func (*Server) Clone

func (s *Server) Clone() interface{}

func (*Server) Endpoints

func (s *Server) Endpoints() []string

func (*Server) Handle

func (s *Server) Handle(h func() error)

func (*Server) ID

func (s *Server) ID() string

func (*Server) Metadata

func (s *Server) Metadata() map[string]string

func (*Server) Name

func (s *Server) Name() string

func (*Server) RawServe

func (s *Server) RawServe(*server.ServeOptions) (ii []registry.Item, er error)

func (*Server) RegisterHandler

func (s *Server) RegisterHandler(h Handler)

func (*Server) SetMetadata

func (s *Server) SetMetadata(meta map[string]string)

func (*Server) Stop

func (s *Server) Stop() error

func (*Server) Type

func (s *Server) Type() server.Type

Jump to

Keyboard shortcuts

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