auto

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAllowedMethods = basicHttp.DefaultAllowedMethods

Functions

func NewAuto

func NewAuto(ctx context.Context, node peer.Node, config *config.Node, ops ...options.Option) (http service.Service, err error)

func NewBasic

func NewBasic(ctx context.Context, config *config.Node, ops ...options.Option) (http service.Service, err error)

Types

type Service

type Service struct {
	*basicHttp.Service
	// contains filtered or unexported fields
}

func New

func New(node, clientNode peer.Node, config *config.Node, opts ...options.Option) (*Service, error)

Must listen on port 443

func (*Service) Error

func (s *Service) Error() error

func (*Service) GetListenAddress

func (s *Service) GetListenAddress() (*url.URL, error)

func (*Service) SetOption

func (s *Service) SetOption(opt interface{}) error

func (*Service) Start

func (s *Service) Start()

TODO: do a domain validation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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