profile

package
v0.0.0-...-6c8972c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(h *common.Server, mw *mux.Router) (*mux.Router, error)

Types

type Profile

type Profile struct {
	UserID    string
	FirstName string
	LastName  string
	UserName  string
	Email     string
	Image     string
	Mobile    string
	Gender    int
	DOB       string
	Address   string
	City      string
	Country   string
}

func (Profile) ValidateProfile

func (p Profile) ValidateProfile(server *common.Server, r *http.Request, id string) error

type ProfileTempData

type ProfileTempData struct {
	CSRFField        template.HTML
	Form             Profile
	Data             []Profile
	FormAction       string
	FormErrors       map[string]string
	FormMessage      map[string]string
	PresetPermission map[string]map[string]bool
	URLs             map[string]string
	GlobalURLs       map[string]string
	GlobalURLsUser   map[string]string
	DefaultPair      string
	SearchTerm       string
	Sorting          []string
}

type Svc

type Svc struct {
	*common.Server
}

Jump to

Keyboard shortcuts

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