Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProposalByDocumentHandler ¶
func ProposalByDocumentHandler(res http.ResponseWriter, req *http.Request)
func ProposalByIdHandler ¶
func ProposalByIdHandler(res http.ResponseWriter, req *http.Request)
func ProposalHandler ¶
func ProposalHandler(res http.ResponseWriter, req *http.Request)
Types ¶
type DocumentProposal ¶
type Proposal ¶
type Proposal struct { // taken from from gorm.Model, so we can json strigify properly ID uint64 `json:"id" gorm:"primarykey"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` Document string `json:"document"` Start uint32 `json:"start"` End uint32 `json:"end"` }
Click to show internal directories.
Click to hide internal directories.