Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct {
ID string `json:"_id" bson:"_id"`
Name string `json:"name" bson:"name"`
Status *string `json:"status,omitempty" bson:"status,omitempty"`
Species *string `json:"species,omitempty" bson:"species,omitempty"`
Type *string `json:"type,omitempty" bson:"type,omitempty"`
Gender *string `json:"gender,omitempty" bson:"gender,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at"`
UpdatedAt *time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"`
}
type NewCharacter ¶
type NewCharacter struct {
Name string `json:"name" bson:"name"`
Status *string `json:"status,omitempty" bson:"status,omitempty"`
Species *string `json:"species,omitempty" bson:"species,omitempty"`
Type *string `json:"type,omitempty" bson:"type,omitempty"`
Gender *string `json:"gender,omitempty" bson:"gender,omitempty"`
CreatedAt time.Time `json:"created_at" bson:"created_at"`
}
type UpdateCharacter ¶
type UpdateCharacter struct {
Name *string `json:"name,omitempty" bson:"name,omitempty"`
Status *string `json:"status,omitempty" bson:"status,omitempty"`
Species *string `json:"species,omitempty" bson:"species,omitempty"`
Type *string `json:"type,omitempty" bson:"type,omitempty"`
Gender *string `json:"gender,omitempty" bson:"gender,omitempty"`
UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.