httpapi

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP interface {
	Start() error
	Stop()
	GetAddr() net.Addr
}

HTTP defines the primitives expected from a basic HTTP server

func NewInstagramHTTP added in v1.0.2

func NewInstagramHTTP(addr string, db *buntdb.DB, imagesFolder string,
	logger zerolog.Logger) HTTP

NewNativeHTTP returns a new initialized Instagram HTTP server

type InstagramHTTP added in v1.0.2

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

InstagramHTTP implements an HTTP server that serves aggregated Instagram posts.

- implements httpapi.HTTP

func (InstagramHTTP) GetAddr added in v1.0.2

func (n InstagramHTTP) GetAddr() net.Addr

func (*InstagramHTTP) Start added in v1.0.2

func (n *InstagramHTTP) Start() error

Start implements httpapi.HTTP

func (InstagramHTTP) Stop added in v1.0.2

func (n InstagramHTTP) Stop()

Stop implements httpapi.HTTP

Jump to

Keyboard shortcuts

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