router

package
v0.0.0-...-a06e19b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPBuilder

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

func Builder

func Builder() CPBuilder

func (CPBuilder) Build

func (b CPBuilder) Build() (*Router, error)

func (CPBuilder) WithBaseContext

func (b CPBuilder) WithBaseContext(ctx context.Context) CPBuilder

func (CPBuilder) WithChannelIdBytesNumber

func (b CPBuilder) WithChannelIdBytesNumber(n int) CPBuilder

func (CPBuilder) WithClientPollDelays

func (b CPBuilder) WithClientPollDelays(min, max time.Duration) CPBuilder

func (CPBuilder) WithGarbageCollectionDelay

func (b CPBuilder) WithGarbageCollectionDelay(d time.Duration) CPBuilder

func (CPBuilder) WithLogger

func (b CPBuilder) WithLogger(log logrus.FieldLogger) CPBuilder

func (CPBuilder) WithRouteResumePollTimeout

func (b CPBuilder) WithRouteResumePollTimeout(t time.Duration) CPBuilder

func (CPBuilder) WithTraceIdBytesNumber

func (b CPBuilder) WithTraceIdBytesNumber(n int) CPBuilder

type Router

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

func (*Router) Route

func (r *Router) Route(name string) *route.Route

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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