documentmodel

package
v0.0.0-...-daf4bef Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

GENERATED DO NOT EDIT GENERATOR: scripts/gencode/gencode.go ARGUMENTS: --component model --config ../../config/api.document.yml --package documentmodel --out ./documentmodel/model.gen.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteDocumentPathParams

type DeleteDocumentPathParams struct {
	DocumentID string
}

type Document

type Document struct {
	ID        string     `json:"id"`
	Header    JSONObject `json:"header"`
	Body      JSONObject `json:"body"`
	CreatedAt string     `json:"created_at"`
	UpdatedAt string     `json:"updated_at"`
}

type GetDocumentPathParams

type GetDocumentPathParams struct {
	DocumentID string
}

type JSONObject

type JSONObject map[string]interface{}

type ListDocumentsQueryParams

type ListDocumentsQueryParams struct {
	PageToken string `json:"page_token"`
	PageSize  int    `json:"page_size"`
}

type ListDocumentsResponse

type ListDocumentsResponse struct {
	Documents     []*Document `json:"documents"`
	NextPageToken string      `json:"next_page_token"`
}

type PutDocumentPathParams

type PutDocumentPathParams struct {
	DocumentID string
}

type QueryDocumentsRequest

type QueryDocumentsRequest struct {
	Select    []interface{} `json:"select"`
	GroupBy   []interface{} `json:"group_by"`
	OrderBy   []interface{} `json:"order_by"`
	Where     interface{}   `json:"where"`
	Limit     int           `json:"limit"`
	PageToken string        `json:"page_token"`
}

type QueryDocumentsResponse

type QueryDocumentsResponse struct {
	Result        []interface{} `json:"result"`
	NextPageToken string        `json:"next_page_token"`
	Insights      JSONObject    `json:"insights"`
}

Jump to

Keyboard shortcuts

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