models

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerConfig

type HandlerConfig struct {
	SessionName   string
	RefCookieName string

	SessionStore sessions.Store

	SaaSTokenName string
	SaaSBaseURL   string

	ByPassAuth bool

	FortioURL string
}

type HandlerInterface

type HandlerInterface interface {
	AuthMiddleware(next http.Handler) http.Handler

	// IndexHandler(w http.ResponseWriter, r *http.Request)
	LoginHandler(w http.ResponseWriter, r *http.Request)
	K8SConfigHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
	LogoutHandler(w http.ResponseWriter, req *http.Request)
	// DashboardHandler(ctx context.Context, w http.ResponseWriter, req *http.Request)
	UserHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request)
	LoadTestHandler(w http.ResponseWriter, req *http.Request)
	MeshOpsHandler(ctx context.Context) func(w http.ResponseWriter, req *http.Request)
}

type User

type User struct {
	UserId    string `json:"user_id,omitempty"`
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
	AvatarURL string `json:"avatar_url,omitempty"`
}

User - represents a user in Meshery

Jump to

Keyboard shortcuts

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