framework

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

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

func New

func New(runner Runner) *Framework

func (*Framework) IsRegistered

func (f *Framework) IsRegistered(svc TwirpServiceBuilder) bool

func (*Framework) Register

func (f *Framework) Register(svc ...TwirpServiceBuilder)

func (*Framework) Run

func (f *Framework) Run(addr string)

type Runner

type Runner interface {
	Register(TwirpServiceBuilder)
	Listen(addr string)
}

type TwirpServiceBuilder

type TwirpServiceBuilder interface {
	http.Handler
	PathPrefix() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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