http

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware added in v0.0.21

func Middleware()

func Start

func Start(ctx context.Context, addr string, conf *config.Server, pub eventapi.Publisher, store domain.Store, svc domain.UserService) error

Start starts the server with specified store.

func UserIDFromContext added in v0.0.21

func UserIDFromContext(ctx context.Context) string

func WithUserID added in v0.0.21

func WithUserID(ctx context.Context, id string) context.Context

Types

type AuthHandler added in v0.0.21

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

type CreateTokenRequest added in v0.0.21

type CreateTokenRequest struct {
	Name string `json:"name"`
}

type HeaderKey added in v0.0.21

type HeaderKey int
const (
	UserIDHeaderKey HeaderKey = iota
)

Jump to

Keyboard shortcuts

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