_userId_

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route[DataProvider RouteDataProvider] struct{}

func (Route[DataProvider]) GetDataContext

func (Route[DataProvider]) GetDataContext(ctx context.Context, r *mux.Request, w mux.ResponseWriter, dp DataProvider, child mux.DataContext) (mux.DataContext, error)

func (Route[DataProvider]) GetDefaultSubRoute

func (Route[DataProvider]) GetDefaultSubRoute(ctx context.Context, r *mux.Request, dp DataProvider) (string, error)

type RouteData

type RouteData struct {
	User         User
	UserTabClass func(string) string
}

type RouteDataProvider

type RouteDataProvider interface {
	GetRouteUsers_userId_Data(ctx context.Context, r *mux.Request, w mux.ResponseWriter, data *RouteData) error
}

type User

type User struct {
	Age   uint8
	Name  string
	Login string
	Image string
}

type Users_userId_DP

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

func NewDP

func NewDP(m *model.Model) *Users_userId_DP

func (*Users_userId_DP) GetRouteUsers_userId_Data

func (p *Users_userId_DP) GetRouteUsers_userId_Data(ctx context.Context, r *mux.Request, w mux.ResponseWriter, data *RouteData) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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