schema

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package schema Schema link

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateSchemaData

type GenerateSchemaData struct {
	Schema string `json:"schema"`
}

GenerateSchemaData generate schema data

type GenerateSchemaRequest

type GenerateSchemaRequest struct {
	AppID      string `json:"app_id"`
	Query      string `json:"query,omitempty"`
	Path       string `json:"path,omitempty"`
	NoExpire   bool   `json:"no_expire"`
	ExpireTime int    `json:"expire_time,omitempty"`
}

GenerateSchemaRequest generate schema request

type GenerateSchemaResponse

type GenerateSchemaResponse struct {
	base.CommonResponse
	Data GenerateSchemaData `json:"data"`
}

GenerateSchemaResponse generate schema response

type QuerySchemaData

type QuerySchemaData struct {
	AppID      string `json:"app_id"`
	Path       string `json:"path"`
	Query      string `json:"query"`
	CreateTime int    `json:"create_time"`
	ExpireTime int    `json:"expire_time"`
}

QuerySchemaData query schema data

type QuerySchemaQuotaData

type QuerySchemaQuotaData struct {
	LongTermSchemaQuota  TermSchemaQuota `json:"long_term_schema_quota"`
	ShortTermSchemaQuota TermSchemaQuota `json:"short_term_schema_quota"`
}

QuerySchemaQuotaData query schema quota data

type QuerySchemaQuotaRequest

type QuerySchemaQuotaRequest struct {
	AppID string `json:"app_id"`
}

QuerySchemaQuotaRequest query schema quota request

type QuerySchemaQuotaResponse

type QuerySchemaQuotaResponse struct {
	base.CommonResponse
	Data QuerySchemaQuotaData `json:"data"`
}

QuerySchemaQuotaResponse query schema quota response

type QuerySchemaRequest

type QuerySchemaRequest struct {
	Schema string `json:"schema"`
	AppID  string `json:"app_id"`
}

QuerySchemaRequest query schema request

type QuerySchemaResponse

type QuerySchemaResponse struct {
	base.CommonResponse
	Data QuerySchemaData `json:"data"`
}

QuerySchemaResponse query schema response

type Schema

type Schema struct {
	*credential.ContextConfig
}

Schema create schema

func New

func New(cfg *credential.ContextConfig) *Schema

New create schema

type TermSchemaQuota

type TermSchemaQuota struct {
	SchemaLimit int `json:"schema_limit"`
	SchemaUsed  int `json:"schema_used"`
}

TermSchemaQuota term schema quota

Jump to

Keyboard shortcuts

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