user

package
v2.26.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
}

The Handler renders the user endpoint

func (*Handler) GetSelf

func (h *Handler) GetSelf(w http.ResponseWriter, r *http.Request)

GetSelf handles GET requests on /cloud/user

type User

type User struct {
	ID          string `json:"id" xml:"id"`                     // UserID in ocs is the owncloud internal username
	DisplayName string `json:"display-name" xml:"display-name"` // is used in ocs/v(1|2).php/cloud/user - yes this is different from the users endpoint
	Email       string `json:"email" xml:"email"`
	UserType    string `json:"user-type" xml:"user-type"`
}

User holds user data

Jump to

Keyboard shortcuts

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