resources

package
v0.0.0-...-8851296 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultElasticSearchEndpoint        string = "elasticsearch:9200"
	DefaultChaincodeRESTEndpoint        string = "chaincode-rest-service:9090"
	DefaultGetDataContractTypesPath     string = "/queries/getDataContractTypesAfterTimeStamp"
	DefaultGetDataContractTypesPageSize int    = 100
	DataContractTypesIndex              string = "dataContractType"
	DefaultTimestampFile                string = "/var/run/esfeeder/datacontracttypes"
	DefaultTimestamp                    string = "0000-01-01T00:00:00.000Z"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainRestConfig

type ChainRestConfig struct {
	Endpoint string
}

type Config

type Config struct {
	Authorization string
	IdxConfig     IndicesConfig
	ESConfig      ElasticSearchConfig
	CCConfig      ChainRestConfig
}

type Data

type Data struct {
	Index   string      `json:"index"`
	Type    string      `json:"type"`
	ID      string      `json:"id"`
	Content interface{} `json:"content"`
}

type ElasticSearchConfig

type ElasticSearchConfig struct {
	Endpoint string
}

type FeedDataRequest

type FeedDataRequest struct {
	Bulk []Data `json: "bulk"`
}

type FeedDataResponse

type FeedDataResponse struct {
	Status string
	Error  string
}

type GetDataContractTypesRequest

type GetDataContractTypesRequest struct {
	Authorization map[string]string
	QueryPath     string
	BookMark      string
	PageSize      int
	Container     []interface{}
}

type GetDataContractTypesResponse

type GetDataContractTypesResponse struct {
	Response         []resources.DataContractType `json:"response"`
	ResponseMetadata []ResponseMetadata           `json:"ResponseMetadata`
	Error            string                       `json:"error"`
}

type IndicesConfig

type IndicesConfig struct {
	IndicesToTimeMap    map[string]int
	IndicesToCCQueryMap map[string]string
}

type Metadata

type Metadata struct {
	RecordsCount string `json:"RecordsCount"`
	Bookmark     string `json:"Bookmark"`
}

type ResponseMetadata

type ResponseMetadata struct {
	ResponseMetadata Metadata `json:"ResponseMetadata"`
}

Jump to

Keyboard shortcuts

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