user

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package user holds details about a person who is using the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// Email: The user's email address.
	Email string `json:"email,omitempty"`

	// LastName: The user's last name.
	LastName string `json:"last_name,omitempty"`

	// FirstName: The user's first name.
	FirstName string `json:"first_name,omitempty"`

	// FullName: The user's full name.
	FullName string `json:"full_name,omitempty"`

	// HostedDomain: The hosted domain e.g. example.com if the user
	// is Google apps user.
	HostedDomain string `json:"hosted_domain,omitempty"`

	// PictureURL: URL of the user's picture image.
	PictureURL string `json:"picture_url,omitempty"`

	// ProfileLink: URL of the profile page.
	ProfileLink string `json:"profile_link,omitempty"`
}

User holds details of a User from Google

func (User) IsValid added in v0.19.0

func (u User) IsValid() bool

IsValid determines whether or not the User has proper data to be considered valid

Directories

Path Synopsis
Package usertest provides testing helper functions for the user package
Package usertest provides testing helper functions for the user package

Jump to

Keyboard shortcuts

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