server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(opts *Options) error

StartServer will start http server

Types

type Options

type Options struct {
	Host                 string
	Port                 int
	DatabaseURL          string
	MigrationsFolderPath string
}

Options repsenend command line options

type PoeStatusServer

type PoeStatusServer struct{}

PoeStatusServer implements Twirp server

func (*PoeStatusServer) SaveScanResults

func (s *PoeStatusServer) SaveScanResults(ctx context.Context, req *rpc.ScanResults) (*rpc.Empty, error)

SaveScanResults implements Twirp handler

Jump to

Keyboard shortcuts

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