web

package
v0.0.0-...-dcafc8e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option defines jwt option.

type PortOption

type PortOption struct {
	Port int
}

PortOption defines an option to set port.

type Server

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

Server represents a web server

func NewServer

func NewServer(options ...Option) *Server

NewServer creates a new web server

func (*Server) Run

func (s *Server) Run(ctx context.Context)

Run starts the server.

type ServerURLOption

type ServerURLOption struct {
	ServerURL string
}

ServerURLOption defines an option to set server url.

Jump to

Keyboard shortcuts

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