shared

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body added in v0.3.0

type Body struct {
}

type Days

type Days string

Days - A string enum representing days of the week

const (
	DaysSunday    Days = "Sunday"
	DaysMonday    Days = "Monday"
	DaysTuesday   Days = "Tuesday"
	DaysWednesday Days = "Wednesday"
	DaysThursday  Days = "Thursday"
	DaysFriday    Days = "Friday"
	DaysSaturday  Days = "Saturday"
)

func (Days) ToPointer

func (e Days) ToPointer() *Days

func (*Days) UnmarshalJSON

func (e *Days) UnmarshalJSON(data []byte) error

type EchoResponse

type EchoResponse struct {
	Body    map[string]Body   `json:"body,omitempty"`
	Headers map[string]string `json:"headers,omitempty"`
	Method  *string           `json:"method,omitempty"`
	// relativePath
	Path        *string                   `json:"path,omitempty"`
	Query       map[string]QueryParameter `json:"query,omitempty"`
	UploadCount *int                      `json:"uploadCount,omitempty"`
}

EchoResponse - Raw http Request info

func (*EchoResponse) GetBody

func (o *EchoResponse) GetBody() map[string]Body

func (*EchoResponse) GetHeaders

func (o *EchoResponse) GetHeaders() map[string]string

func (*EchoResponse) GetMethod

func (o *EchoResponse) GetMethod() *string

func (*EchoResponse) GetPath

func (o *EchoResponse) GetPath() *string

func (*EchoResponse) GetQuery

func (o *EchoResponse) GetQuery() map[string]QueryParameter

func (*EchoResponse) GetUploadCount

func (o *EchoResponse) GetUploadCount() *int

type Employee

type Employee struct {
	Address    string     `json:"address"`
	Age        int64      `json:"age"`
	Birthday   types.Date `json:"birthday"`
	Birthtime  time.Time  `json:"birthtime"`
	Boss       *Person    `json:"boss,omitempty"`
	Department string     `json:"department"`
	Dependents []Person   `json:"dependents"`
	HiredAt    string     `json:"hiredAt"`
	// A string enum representing days of the week
	JoiningDay  Days   `json:"joiningDay"`
	Name        string `json:"name"`
	PersonType  string `json:"personType"`
	Salary      int    `json:"salary"`
	UID         string `json:"uid"`
	WorkingDays []Days `json:"workingDays"`
}

func (*Employee) GetAddress

func (o *Employee) GetAddress() string

func (*Employee) GetAge

func (o *Employee) GetAge() int64

func (*Employee) GetBirthday

func (o *Employee) GetBirthday() types.Date

func (*Employee) GetBirthtime

func (o *Employee) GetBirthtime() time.Time

func (*Employee) GetBoss

func (o *Employee) GetBoss() *Person

func (*Employee) GetDepartment

func (o *Employee) GetDepartment() string

func (*Employee) GetDependents

func (o *Employee) GetDependents() []Person

func (*Employee) GetHiredAt

func (o *Employee) GetHiredAt() string

func (*Employee) GetJoiningDay

func (o *Employee) GetJoiningDay() Days

func (*Employee) GetName

func (o *Employee) GetName() string

func (*Employee) GetPersonType

func (o *Employee) GetPersonType() string

func (*Employee) GetSalary

func (o *Employee) GetSalary() int

func (*Employee) GetUID

func (o *Employee) GetUID() string

func (*Employee) GetWorkingDays

func (o *Employee) GetWorkingDays() []Days

func (Employee) MarshalJSON

func (e Employee) MarshalJSON() ([]byte, error)

func (*Employee) UnmarshalJSON

func (e *Employee) UnmarshalJSON(data []byte) error

type Input added in v0.3.0

type Input struct {
}

type Person

type Person struct {
	Address    string     `json:"address"`
	Age        int64      `json:"age"`
	Birthday   types.Date `json:"birthday"`
	Birthtime  time.Time  `json:"birthtime"`
	Name       string     `json:"name"`
	PersonType string     `json:"personType"`
	UID        string     `json:"uid"`
}

func (*Person) GetAddress

func (o *Person) GetAddress() string

func (*Person) GetAge

func (o *Person) GetAge() int64

func (*Person) GetBirthday

func (o *Person) GetBirthday() types.Date

func (*Person) GetBirthtime

func (o *Person) GetBirthtime() time.Time

func (*Person) GetName

func (o *Person) GetName() string

func (*Person) GetPersonType

func (o *Person) GetPersonType() string

func (*Person) GetUID

func (o *Person) GetUID() string

func (Person) MarshalJSON

func (p Person) MarshalJSON() ([]byte, error)

func (*Person) UnmarshalJSON

func (p *Person) UnmarshalJSON(data []byte) error

type QueryParameter

type QueryParameter struct {
	Key *string `json:"key,omitempty"`
}

QueryParameter - Query parameter key value pair echoed back from the server.

func (*QueryParameter) GetKey

func (o *QueryParameter) GetKey() *string

type ServerResponse

type ServerResponse struct {
	Message *string          `json:"Message,omitempty"`
	Input   map[string]Input `json:"input,omitempty"`
	Passed  bool             `json:"passed"`
}

func (*ServerResponse) GetInput

func (o *ServerResponse) GetInput() map[string]Input

func (*ServerResponse) GetMessage

func (o *ServerResponse) GetMessage() *string

func (*ServerResponse) GetPassed

func (o *ServerResponse) GetPassed() bool

type SuiteCode

type SuiteCode int64

SuiteCode - A integer based enum representing a Suite in a game of cards

const (
	SuiteCodeOne   SuiteCode = 1
	SuiteCodeTwo   SuiteCode = 2
	SuiteCodeThree SuiteCode = 3
	SuiteCodeFour  SuiteCode = 4
)

func (SuiteCode) ToPointer

func (e SuiteCode) ToPointer() *SuiteCode

func (*SuiteCode) UnmarshalJSON

func (e *SuiteCode) UnmarshalJSON(data []byte) error

type Validate added in v0.3.3

type Validate struct {
	Address *string `json:"address,omitempty"`
	Field   string  `json:"field"`
	Name    string  `json:"name"`
}

func (*Validate) GetAddress added in v0.3.3

func (o *Validate) GetAddress() *string

func (*Validate) GetField added in v0.3.3

func (o *Validate) GetField() string

func (*Validate) GetName added in v0.3.3

func (o *Validate) GetName() string

Jump to

Keyboard shortcuts

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