anonymous

package
v0.0.0-...-5538d7f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewCreateSessionRoute

func NewCreateSessionRoute(ro *Router) chttp.RouteResult

Types

type Router

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

func NewRouter

func NewRouter(p RouterParams) *Router

func (*Router) HandleCreateSession

func (ro *Router) HandleCreateSession(w http.ResponseWriter, r *http.Request)

type RouterParams

type RouterParams struct {
	fx.In

	RW     chttp.ReaderWriter
	Logger clogger.Logger

	Svc Svc
}

type Svc

type Svc interface {
	CreateAnonymousUser(ctx context.Context) (u *cauth.User, sessionToken string, err error)
}

func NewSvc

func NewSvc(p SvcParams) Svc

type SvcParams

type SvcParams struct {
	fx.In

	Auth cauth.Svc
}

Jump to

Keyboard shortcuts

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