models

package
v0.0.0-...-7b6d726 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date time.Time

Date is foramt which contains year, month and day

func (Date) MarshalGQL

func (dt Date) MarshalGQL(w io.Writer)

MarshalGQL convert to GraphGL type

func (*Date) UnmarshalGQL

func (dt *Date) UnmarshalGQL(v interface{}) error

UnmarshalGQL convert from Graphql type

type DateTime

type DateTime time.Time

DateTime represents time in RFC3339 format

func (DateTime) MarshalGQL

func (dt DateTime) MarshalGQL(w io.Writer)

MarshalGQL convert to GraphGL type

func (*DateTime) UnmarshalGQL

func (dt *DateTime) UnmarshalGQL(v interface{}) error

UnmarshalGQL convert from Graphql type

type GetMessagesInput

type GetMessagesInput struct {
	StartDate DateTime `json:"startDate"`
	EndDate   DateTime `json:"endDate"`
}

type Message

type Message struct {
	ID        string   `json:"id"`
	Text      string   `json:"text"`
	CreatedAt DateTime `json:"createdAt"`
}

type WriteMessageInput

type WriteMessageInput struct {
	ID   string `json:"id"`
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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