domain

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPatient = Patient{}
View Source
var DefaultTreatment = Treatment{}

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Domain     string    `yaml:"host"`
	Username   string    `yaml:"username"`
	UserID     int       `yaml:"userID"`
	AuthCookie string    `yaml:"authCookie"`
	Expires    time.Time `yaml:"expires"`
}

type Patient

type Patient struct {
	ID                 int    `json:"id"`
	FirstName          string `json:"first_name"`
	LastName           string `json:"last_name"`
	PreferredFirstName string `json:"preferred_first_name"`
}

func (Patient) PrintName added in v1.3.0

func (patient Patient) PrintName() string

type SecondsDuration

type SecondsDuration struct {
	time.Duration
}

func (*SecondsDuration) UnmarshalJSON

func (duration *SecondsDuration) UnmarshalJSON(bytes []byte) error

type StaffMember

type StaffMember struct {
	ID          int    `json:"id"`
	Email       string `json:"email"`
	LocationIDs []int  `json:"location_ids"`
}

type Treatment

type Treatment struct {
	ID                int             `json:"id"`
	Name              string          `json:"name"`
	ScheduledDuration SecondsDuration `json:"scheduled_duration"`
	StaffMemberID     int             `json:"staff_member_id"`
}

type User

type User struct {
	Auth       Auth `yaml:"auth"`
	LocationID int  `yaml:"locationID"`
	RoomID     int  `yaml:"roomID"`
	// contains filtered or unexported fields
}

func NewUser

func NewUser(logger logger.Logger, filePath string) (User, error)

func (User) PostCheck

func (user User) PostCheck()

func (*User) SaveUserFile

func (user *User) SaveUserFile() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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