service

package
v0.0.0-...-05cadd0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedURL

type ParsedURL struct {
	MethodPath string // "/path/to/method/"
	QueryPath  string // "path_to_method"
	ID         []int64
	config.MethodConfig
}

ParsedURL contains parsed data from query URL

type Readiness

type Readiness interface {
	Ready()
	NotReady()
}

Readiness implements ready/notReady signal receiver

type Service

type Service interface {
	MainHandler(w http.ResponseWriter, r *http.Request)
	FileHandler(w http.ResponseWriter, r *http.Request)
}

Service implements service interface

func NewService

func NewService(ctx context.Context, cfg *config.Config, log log.Logger, rd Readiness) (Service, error)

NewService returns new service

Jump to

Keyboard shortcuts

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