├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── Dockerfile ├── Gopkg.lock ├── Gopkg.toml ├── LICENSE ├── NOTICE ├── README.md ├── build.sh ├── cmd ├── cmd.go └── version.go ├── config-docker.toml ├── config.toml.sample ├── main.go ├── scripts └── gen-ldflags.go ├── server ├── cache.go ├── config.go ├── conn.go ├── constants.go ├── datasources │ ├── blockchain │ │ └── blockchain.go │ ├── censys │ │ ├── api │ │ │ ├── driver.go │ │ │ ├── error.go │ │ │ └── merge.go │ │ └── censys.go │ ├── datasources.go │ ├── es5 │ │ └── elasticsearchindexv5.go │ ├── field.go │ ├── graph.go │ ├── index.go │ ├── item.go │ ├── live │ │ └── live.go │ ├── node.go │ ├── openkvk │ │ └── openkvk.go │ ├── options.go │ ├── search_response.go │ ├── solr │ │ └── solr.go │ ├── splunk │ │ ├── client.go │ │ └── splunk.go │ ├── tronscan │ │ └── tronscan.go │ ├── twitter │ │ ├── twitter.go │ │ ├── twitter_followers.go │ │ ├── twitter_friends.go │ │ └── twitter_tweets.go │ └── voertuiggegevens │ │ └── voertuiggegevens.go ├── getfields.go ├── hub.go ├── items.go ├── live.go ├── messages │ └── messages.go ├── options.go ├── search.go ├── server.go └── unique │ └── unique.go └── vendor ├── github.com ├── BurntSushi │ └── toml │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── COMPATIBLE │ │ ├── COPYING │ │ ├── Makefile │ │ ├── README.md │ │ ├── _examples │ │ ├── example.go │ │ ├── example.toml │ │ ├── hard.toml │ │ ├── implicit.toml │ │ ├── invalid-apples.toml │ │ ├── invalid.toml │ │ ├── readme1.toml │ │ └── readme2.toml │ │ ├── cmd │ │ ├── toml-test-decoder │ │ │ ├── COPYING │ │ │ ├── README.md │ │ │ └── main.go │ │ ├── toml-test-encoder │ │ │ ├── COPYING │ │ │ ├── README.md │ │ │ └── main.go │ │ └── tomlv │ │ │ ├── COPYING │ │ │ ├── README.md │ │ │ └── main.go │ │ ├── decode.go │ │ ├── decode_meta.go │ │ ├── decode_test.go │ │ ├── doc.go │ │ ├── encode.go │ │ ├── encode_test.go │ │ ├── encoding_types.go │ │ ├── encoding_types_1.1.go │ │ ├── lex.go │ │ ├── parse.go │ │ ├── session.vim │ │ ├── type_check.go │ │ └── type_fields.go ├── cenkalti │ └── backoff │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── backoff.go │ │ ├── backoff_test.go │ │ ├── context.go │ │ ├── context_test.go │ │ ├── example_test.go │ │ ├── exponential.go │ │ ├── exponential_test.go │ │ ├── retry.go │ │ ├── retry_test.go │ │ ├── ticker.go │ │ ├── ticker_test.go │ │ ├── tries.go │ │ └── tries_test.go ├── dghubble │ ├── go-twitter │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── examples │ │ │ ├── README.md │ │ │ ├── app-auth.go │ │ │ ├── streaming.go │ │ │ └── user-auth.go │ │ ├── test │ │ └── twitter │ │ │ ├── accounts.go │ │ │ ├── accounts_test.go │ │ │ ├── backoffs.go │ │ │ ├── backoffs_test.go │ │ │ ├── demux.go │ │ │ ├── demux_test.go │ │ │ ├── direct_messages.go │ │ │ ├── direct_messages_test.go │ │ │ ├── doc.go │ │ │ ├── entities.go │ │ │ ├── entities_test.go │ │ │ ├── errors.go │ │ │ ├── errors_test.go │ │ │ ├── favorites.go │ │ │ ├── favorites_test.go │ │ │ ├── followers.go │ │ │ ├── followers_test.go │ │ │ ├── friends.go │ │ │ ├── friends_test.go │ │ │ ├── friendships.go │ │ │ ├── friendships_test.go │ │ │ ├── search.go │ │ │ ├── search_test.go │ │ │ ├── statuses.go │ │ │ ├── statuses_test.go │ │ │ ├── stream_messages.go │ │ │ ├── stream_utils.go │ │ │ ├── stream_utils_test.go │ │ │ ├── streams.go │ │ │ ├── streams_test.go │ │ │ ├── timelines.go │ │ │ ├── timelines_test.go │ │ │ ├── trends.go │ │ │ ├── trends_test.go │ │ │ ├── twitter.go │ │ │ ├── twitter_test.go │ │ │ ├── users.go │ │ │ └── users_test.go │ ├── oauth1 │ │ ├── .travis.yml │ │ ├── CHANGES.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── auther.go │ │ ├── auther_test.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── context.go │ │ ├── context_test.go │ │ ├── doc.go │ │ ├── dropbox │ │ │ └── dropbox.go │ │ ├── encode.go │ │ ├── encode_test.go │ │ ├── endpoint.go │ │ ├── examples │ │ │ ├── README.md │ │ │ ├── tumblr-login.go │ │ │ ├── tumblr-request.go │ │ │ ├── twitter-login.go │ │ │ └── twitter-request.go │ │ ├── reference_test.go │ │ ├── signer.go │ │ ├── test │ │ ├── token.go │ │ ├── token_test.go │ │ ├── transport.go │ │ ├── transport_test.go │ │ ├── tumblr │ │ │ └── tumblr.go │ │ └── twitter │ │ │ └── twitter.go │ └── sling │ │ ├── .travis.yml │ │ ├── CHANGES.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── body.go │ │ ├── doc.go │ │ ├── examples │ │ ├── README.md │ │ └── github.go │ │ ├── sling.go │ │ ├── sling_test.go │ │ └── test ├── dutchcoders │ └── marija-web │ │ ├── .babelrc │ │ ├── .env.sample │ │ ├── .eslintrc.json │ │ ├── .gitignore │ │ ├── .jshintrc │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bindata.go │ │ ├── bindata_gen.go │ │ ├── deploy.sh │ │ ├── jest.config.json │ │ ├── package.json │ │ ├── run.sh │ │ ├── src │ │ ├── app │ │ │ ├── components │ │ │ │ ├── Configuration │ │ │ │ │ └── ConfigurationView.js │ │ │ │ ├── Graphs │ │ │ │ │ ├── Graph.js │ │ │ │ │ ├── GraphPixi.js │ │ │ │ │ ├── Histogram.js │ │ │ │ │ ├── Query.js │ │ │ │ │ └── Worker.js │ │ │ │ ├── Header.js │ │ │ │ ├── Misc │ │ │ │ │ ├── Icon.js │ │ │ │ │ ├── Loader.js │ │ │ │ │ ├── Pane.js │ │ │ │ │ ├── ResumeSession.js │ │ │ │ │ ├── StateCapturer.js │ │ │ │ │ └── Websocket.js │ │ │ │ ├── RootView.js │ │ │ │ ├── Table │ │ │ │ │ ├── Nodes.js │ │ │ │ │ ├── Record.js │ │ │ │ │ ├── RecordDetail.js │ │ │ │ │ ├── RecordHeader.js │ │ │ │ │ └── TableView.js │ │ │ │ └── index.js │ │ │ ├── config.js │ │ │ ├── domain │ │ │ │ ├── Fields.js │ │ │ │ ├── Migrations.js │ │ │ │ ├── Url.js │ │ │ │ ├── Workspaces.js │ │ │ │ └── index.js │ │ │ ├── helpers │ │ │ │ ├── abbreviateNodeName.js │ │ │ │ ├── applyVia.js │ │ │ │ ├── exportJson.js │ │ │ │ ├── fieldLocator.js │ │ │ │ ├── filterSecondaryComponents.js │ │ │ │ ├── filterSecondaryComponents.test.js │ │ │ │ ├── generateColour.js │ │ │ │ ├── getArcParams.js │ │ │ │ ├── getConnectedComponents.js │ │ │ │ ├── getConnectedComponents.test.js │ │ │ │ ├── getNodesAndLinks.js │ │ │ │ ├── getNodesAndLinks.test.js │ │ │ │ ├── getNodesForDisplay.js │ │ │ │ ├── getQueryColor.js │ │ │ │ ├── getRelatedNodes.js │ │ │ │ ├── hash.js │ │ │ │ ├── index.js │ │ │ │ ├── intToRgb.js │ │ │ │ ├── normalize.js │ │ │ │ ├── persistState.js │ │ │ │ ├── removeDeadLinks.js │ │ │ │ ├── removeNodesAndLinks.js │ │ │ │ └── removeNodesAndLinks.test.js │ │ │ ├── main.js │ │ │ ├── modules │ │ │ │ ├── batch │ │ │ │ │ ├── actions.js │ │ │ │ │ └── index.js │ │ │ │ ├── data │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ ├── fields │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── components │ │ │ │ │ │ ├── Field.js │ │ │ │ │ │ └── FieldType.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ ├── graph │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ ├── import │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ ├── indices │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ ├── search │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── components │ │ │ │ │ │ ├── SearchBox.js │ │ │ │ │ │ └── Searches.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ ├── servers │ │ │ │ │ ├── actions.js │ │ │ │ │ ├── constants.js │ │ │ │ │ └── index.js │ │ │ │ └── status │ │ │ │ │ ├── ConnectionStatus.js │ │ │ │ │ ├── ErrorStatus.js │ │ │ │ │ └── index.js │ │ │ ├── reducers │ │ │ │ ├── batch.js │ │ │ │ ├── entries.js │ │ │ │ ├── fields.js │ │ │ │ ├── index.js │ │ │ │ ├── indices.js │ │ │ │ ├── root.js │ │ │ │ ├── servers.js │ │ │ │ └── utils.js │ │ │ └── utils │ │ │ │ ├── actions.js │ │ │ │ ├── constants.js │ │ │ │ ├── index.js │ │ │ │ └── infrastructure │ │ │ │ ├── FlowWS.js │ │ │ │ └── Socket.js │ │ ├── css │ │ │ ├── default.css │ │ │ └── fonts.css │ │ ├── docs.json │ │ ├── images │ │ │ ├── favicon.png │ │ │ ├── logo.png │ │ │ └── search-icon.png │ │ ├── index.html │ │ └── scss │ │ │ ├── app.scss │ │ │ ├── components │ │ │ ├── field.scss │ │ │ └── graph.scss │ │ │ ├── nav.scss │ │ │ ├── node.scss │ │ │ ├── panes.scss │ │ │ ├── rc-tooltip.scss │ │ │ ├── search.scss │ │ │ └── variables.scss │ │ ├── webpack-build.config.js │ │ ├── webpack.config.js │ │ └── yarn.lock ├── elazarl │ └── go-bindata-assetfs │ │ ├── LICENSE │ │ ├── README.md │ │ ├── assetfs.go │ │ ├── doc.go │ │ └── go-bindata-assetfs │ │ └── main.go ├── fatih │ └── color │ │ ├── .travis.yml │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── color.go │ │ ├── color_test.go │ │ └── doc.go ├── gernest │ └── mention │ │ ├── .travis.yml │ │ ├── LICENCE │ │ ├── README.md │ │ ├── examples_test.go │ │ ├── mention.go │ │ └── mention_test.go ├── google │ └── go-querystring │ │ ├── .gitignore │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ └── query │ │ ├── encode.go │ │ └── encode_test.go ├── gorilla │ └── websocket │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── client.go │ │ ├── client_clone.go │ │ ├── client_clone_legacy.go │ │ ├── client_server_test.go │ │ ├── client_test.go │ │ ├── compression.go │ │ ├── compression_test.go │ │ ├── conn.go │ │ ├── conn_broadcast_test.go │ │ ├── conn_read.go │ │ ├── conn_read_legacy.go │ │ ├── conn_test.go │ │ ├── doc.go │ │ ├── example_test.go │ │ ├── examples │ │ ├── autobahn │ │ │ ├── README.md │ │ │ ├── fuzzingclient.json │ │ │ └── server.go │ │ ├── chat │ │ │ ├── README.md │ │ │ ├── client.go │ │ │ ├── home.html │ │ │ ├── hub.go │ │ │ └── main.go │ │ ├── command │ │ │ ├── README.md │ │ │ ├── home.html │ │ │ └── main.go │ │ ├── echo │ │ │ ├── README.md │ │ │ ├── client.go │ │ │ └── server.go │ │ └── filewatch │ │ │ ├── README.md │ │ │ └── main.go │ │ ├── json.go │ │ ├── json_test.go │ │ ├── mask.go │ │ ├── mask_safe.go │ │ ├── mask_test.go │ │ ├── prepared.go │ │ ├── prepared_test.go │ │ ├── server.go │ │ ├── server_test.go │ │ ├── util.go │ │ └── util_test.go ├── kr │ ├── pretty │ │ ├── .gitignore │ │ ├── License │ │ ├── Readme │ │ ├── diff.go │ │ ├── diff_test.go │ │ ├── example_test.go │ │ ├── formatter.go │ │ ├── formatter_test.go │ │ ├── pretty.go │ │ └── zero.go │ └── text │ │ ├── License │ │ ├── Readme │ │ ├── cmd │ │ └── agg │ │ │ ├── doc.go │ │ │ ├── main.go │ │ │ ├── num.go │ │ │ └── string.go │ │ ├── colwriter │ │ ├── Readme │ │ ├── column.go │ │ └── column_test.go │ │ ├── doc.go │ │ ├── indent.go │ │ ├── indent_test.go │ │ ├── mc │ │ ├── Readme │ │ └── mc.go │ │ ├── wrap.go │ │ └── wrap_test.go ├── mailru │ └── easyjson │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── benchmark │ │ ├── codec_test.go │ │ ├── data.go │ │ ├── data_codec.go │ │ ├── data_ffjson.go │ │ ├── data_var.go │ │ ├── default_test.go │ │ ├── dummy_test.go │ │ ├── easyjson_test.go │ │ ├── example.json │ │ ├── ffjson_test.go │ │ ├── jsoniter_test.go │ │ └── ujson.sh │ │ ├── bootstrap │ │ └── bootstrap.go │ │ ├── buffer │ │ ├── pool.go │ │ └── pool_test.go │ │ ├── easyjson │ │ └── main.go │ │ ├── gen │ │ ├── decoder.go │ │ ├── encoder.go │ │ ├── generator.go │ │ └── generator_test.go │ │ ├── helpers.go │ │ ├── jlexer │ │ ├── bytestostr.go │ │ ├── bytestostr_nounsafe.go │ │ ├── error.go │ │ ├── lexer.go │ │ └── lexer_test.go │ │ ├── jwriter │ │ └── writer.go │ │ ├── opt │ │ ├── gotemplate_Bool.go │ │ ├── gotemplate_Float32.go │ │ ├── gotemplate_Float64.go │ │ ├── gotemplate_Int.go │ │ ├── gotemplate_Int16.go │ │ ├── gotemplate_Int32.go │ │ ├── gotemplate_Int64.go │ │ ├── gotemplate_Int8.go │ │ ├── gotemplate_String.go │ │ ├── gotemplate_Uint.go │ │ ├── gotemplate_Uint16.go │ │ ├── gotemplate_Uint32.go │ │ ├── gotemplate_Uint64.go │ │ ├── gotemplate_Uint8.go │ │ ├── optional │ │ │ └── opt.go │ │ └── opts.go │ │ ├── parser │ │ ├── parser.go │ │ ├── parser_unix.go │ │ └── parser_windows.go │ │ ├── raw.go │ │ └── tests │ │ ├── basic_test.go │ │ ├── data.go │ │ ├── errors.go │ │ ├── errors_test.go │ │ ├── named_type.go │ │ ├── nested_easy.go │ │ ├── nothing.go │ │ ├── omitempty.go │ │ ├── opt_test.go │ │ ├── required_test.go │ │ └── snake.go ├── mattn │ ├── go-colorable │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── _example │ │ │ ├── escape-seq │ │ │ │ └── main.go │ │ │ ├── logrus │ │ │ │ └── main.go │ │ │ └── title │ │ │ │ └── main.go │ │ ├── colorable_appengine.go │ │ ├── colorable_others.go │ │ ├── colorable_test.go │ │ ├── colorable_windows.go │ │ └── noncolorable.go │ └── go-isatty │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── example_test.go │ │ ├── isatty_appengine.go │ │ ├── isatty_bsd.go │ │ ├── isatty_linux.go │ │ ├── isatty_linux_ppc64x.go │ │ ├── isatty_others.go │ │ ├── isatty_others_test.go │ │ ├── isatty_solaris.go │ │ ├── isatty_windows.go │ │ └── isatty_windows_test.go ├── minio │ └── cli │ │ ├── .flake8 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── altsrc │ │ ├── altsrc.go │ │ ├── flag.go │ │ ├── flag_generated.go │ │ ├── flag_test.go │ │ ├── helpers_test.go │ │ ├── input_source_context.go │ │ ├── map_input_source.go │ │ ├── toml_command_test.go │ │ ├── toml_file_loader.go │ │ ├── yaml_command_test.go │ │ └── yaml_file_loader.go │ │ ├── app.go │ │ ├── app_test.go │ │ ├── appveyor.yml │ │ ├── autocomplete │ │ ├── bash_autocomplete │ │ └── zsh_autocomplete │ │ ├── category.go │ │ ├── cli.go │ │ ├── command.go │ │ ├── command_test.go │ │ ├── context.go │ │ ├── context_test.go │ │ ├── errors.go │ │ ├── errors_test.go │ │ ├── flag-types.json │ │ ├── flag.go │ │ ├── flag_generated.go │ │ ├── flag_test.go │ │ ├── funcs.go │ │ ├── generate-flag-types │ │ ├── help.go │ │ ├── help_test.go │ │ ├── helpers_test.go │ │ ├── helpers_unix_test.go │ │ ├── helpers_windows_test.go │ │ └── runtests ├── op │ └── go-logging │ │ ├── .travis.yml │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── backend.go │ │ ├── example_test.go │ │ ├── examples │ │ ├── example.go │ │ └── example.png │ │ ├── format.go │ │ ├── format_test.go │ │ ├── level.go │ │ ├── level_test.go │ │ ├── log_nix.go │ │ ├── log_test.go │ │ ├── log_windows.go │ │ ├── logger.go │ │ ├── logger_test.go │ │ ├── memory.go │ │ ├── memory_test.go │ │ ├── multi.go │ │ ├── multi_test.go │ │ ├── syslog.go │ │ └── syslog_fallback.go ├── patrickmn │ └── go-cache │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cache.go │ │ ├── cache_test.go │ │ ├── sharded.go │ │ └── sharded_test.go ├── pkg │ └── errors │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── bench_test.go │ │ ├── errors.go │ │ ├── errors_test.go │ │ ├── example_test.go │ │ ├── format_test.go │ │ ├── stack.go │ │ └── stack_test.go ├── qedus │ └── blockchain │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── address.go │ │ ├── address_test.go │ │ ├── block.go │ │ ├── block_test.go │ │ ├── blockchain.go │ │ ├── transaction.go │ │ ├── transaction_test.go │ │ ├── wallet.go │ │ └── wallet_test.go └── satori │ └── go.uuid │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── codec.go │ ├── codec_test.go │ ├── generator.go │ ├── generator_test.go │ ├── sql.go │ ├── sql_test.go │ ├── uuid.go │ └── uuid_test.go ├── golang.org └── x │ ├── net │ ├── .gitattributes │ ├── .gitignore │ ├── AUTHORS │ ├── CONTRIBUTING.md │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── PATENTS │ ├── README.md │ ├── bpf │ │ ├── asm.go │ │ ├── constants.go │ │ ├── doc.go │ │ ├── instructions.go │ │ ├── instructions_test.go │ │ ├── setter.go │ │ ├── testdata │ │ │ ├── all_instructions.bpf │ │ │ └── all_instructions.txt │ │ ├── vm.go │ │ ├── vm_aluop_test.go │ │ ├── vm_bpf_test.go │ │ ├── vm_extension_test.go │ │ ├── vm_instructions.go │ │ ├── vm_jump_test.go │ │ ├── vm_load_test.go │ │ ├── vm_ret_test.go │ │ ├── vm_scratch_test.go │ │ └── vm_test.go │ ├── codereview.cfg │ ├── context │ │ ├── context.go │ │ ├── context_test.go │ │ ├── ctxhttp │ │ │ ├── ctxhttp.go │ │ │ ├── ctxhttp_17_test.go │ │ │ ├── ctxhttp_pre17.go │ │ │ ├── ctxhttp_pre17_test.go │ │ │ └── ctxhttp_test.go │ │ ├── go17.go │ │ ├── go19.go │ │ ├── pre_go17.go │ │ ├── pre_go19.go │ │ └── withtimeout_test.go │ ├── dict │ │ └── dict.go │ ├── dns │ │ └── dnsmessage │ │ │ ├── example_test.go │ │ │ ├── message.go │ │ │ └── message_test.go │ ├── html │ │ ├── atom │ │ │ ├── atom.go │ │ │ ├── atom_test.go │ │ │ ├── gen.go │ │ │ ├── table.go │ │ │ └── table_test.go │ │ ├── charset │ │ │ ├── charset.go │ │ │ ├── charset_test.go │ │ │ └── testdata │ │ │ │ ├── HTTP-charset.html │ │ │ │ ├── HTTP-vs-UTF-8-BOM.html │ │ │ │ ├── HTTP-vs-meta-charset.html │ │ │ │ ├── HTTP-vs-meta-content.html │ │ │ │ ├── No-encoding-declaration.html │ │ │ │ ├── README │ │ │ │ ├── UTF-16BE-BOM.html │ │ │ │ ├── UTF-16LE-BOM.html │ │ │ │ ├── UTF-8-BOM-vs-meta-charset.html │ │ │ │ ├── UTF-8-BOM-vs-meta-content.html │ │ │ │ ├── meta-charset-attribute.html │ │ │ │ └── meta-content-attribute.html │ │ ├── const.go │ │ ├── doc.go │ │ ├── doctype.go │ │ ├── entity.go │ │ ├── entity_test.go │ │ ├── escape.go │ │ ├── escape_test.go │ │ ├── example_test.go │ │ ├── foreign.go │ │ ├── node.go │ │ ├── node_test.go │ │ ├── parse.go │ │ ├── parse_test.go │ │ ├── render.go │ │ ├── render_test.go │ │ ├── testdata │ │ │ ├── go1.html │ │ │ └── webkit │ │ │ │ ├── README │ │ │ │ ├── adoption01.dat │ │ │ │ ├── adoption02.dat │ │ │ │ ├── comments01.dat │ │ │ │ ├── doctype01.dat │ │ │ │ ├── entities01.dat │ │ │ │ ├── entities02.dat │ │ │ │ ├── html5test-com.dat │ │ │ │ ├── inbody01.dat │ │ │ │ ├── isindex.dat │ │ │ │ ├── pending-spec-changes-plain-text-unsafe.dat │ │ │ │ ├── pending-spec-changes.dat │ │ │ │ ├── plain-text-unsafe.dat │ │ │ │ ├── scriptdata01.dat │ │ │ │ ├── scripted │ │ │ │ ├── adoption01.dat │ │ │ │ └── webkit01.dat │ │ │ │ ├── tables01.dat │ │ │ │ ├── tests1.dat │ │ │ │ ├── tests10.dat │ │ │ │ ├── tests11.dat │ │ │ │ ├── tests12.dat │ │ │ │ ├── tests14.dat │ │ │ │ ├── tests15.dat │ │ │ │ ├── tests16.dat │ │ │ │ ├── tests17.dat │ │ │ │ ├── tests18.dat │ │ │ │ ├── tests19.dat │ │ │ │ ├── tests2.dat │ │ │ │ ├── tests20.dat │ │ │ │ ├── tests21.dat │ │ │ │ ├── tests22.dat │ │ │ │ ├── tests23.dat │ │ │ │ ├── tests24.dat │ │ │ │ ├── tests25.dat │ │ │ │ ├── tests26.dat │ │ │ │ ├── tests3.dat │ │ │ │ ├── tests4.dat │ │ │ │ ├── tests5.dat │ │ │ │ ├── tests6.dat │ │ │ │ ├── tests7.dat │ │ │ │ ├── tests8.dat │ │ │ │ ├── tests9.dat │ │ │ │ ├── tests_innerHTML_1.dat │ │ │ │ ├── tricky01.dat │ │ │ │ ├── webkit01.dat │ │ │ │ └── webkit02.dat │ │ ├── token.go │ │ └── token_test.go │ ├── http │ │ └── httpproxy │ │ │ ├── export_test.go │ │ │ ├── go19_test.go │ │ │ ├── proxy.go │ │ │ └── proxy_test.go │ ├── http2 │ │ ├── .gitignore │ │ ├── Dockerfile │ │ ├── Makefile │ │ ├── README │ │ ├── ciphers.go │ │ ├── ciphers_test.go │ │ ├── client_conn_pool.go │ │ ├── configure_transport.go │ │ ├── databuffer.go │ │ ├── databuffer_test.go │ │ ├── errors.go │ │ ├── errors_test.go │ │ ├── flow.go │ │ ├── flow_test.go │ │ ├── frame.go │ │ ├── frame_test.go │ │ ├── go16.go │ │ ├── go17.go │ │ ├── go17_not18.go │ │ ├── go18.go │ │ ├── go18_test.go │ │ ├── go19.go │ │ ├── go19_test.go │ │ ├── gotrack.go │ │ ├── gotrack_test.go │ │ ├── h2demo │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── h2demo.go │ │ │ ├── launch.go │ │ │ ├── rootCA.key │ │ │ ├── rootCA.pem │ │ │ ├── rootCA.srl │ │ │ ├── server.crt │ │ │ ├── server.key │ │ │ └── tmpl.go │ │ ├── h2i │ │ │ ├── README.md │ │ │ └── h2i.go │ │ ├── headermap.go │ │ ├── hpack │ │ │ ├── encode.go │ │ │ ├── encode_test.go │ │ │ ├── hpack.go │ │ │ ├── hpack_test.go │ │ │ ├── huffman.go │ │ │ ├── tables.go │ │ │ └── tables_test.go │ │ ├── http2.go │ │ ├── http2_test.go │ │ ├── not_go16.go │ │ ├── not_go17.go │ │ ├── not_go18.go │ │ ├── not_go19.go │ │ ├── pipe.go │ │ ├── pipe_test.go │ │ ├── server.go │ │ ├── server_push_test.go │ │ ├── server_test.go │ │ ├── testdata │ │ │ └── draft-ietf-httpbis-http2.xml │ │ ├── transport.go │ │ ├── transport_test.go │ │ ├── write.go │ │ ├── writesched.go │ │ ├── writesched_priority.go │ │ ├── writesched_priority_test.go │ │ ├── writesched_random.go │ │ ├── writesched_random_test.go │ │ ├── writesched_test.go │ │ └── z_spec_test.go │ ├── icmp │ │ ├── dstunreach.go │ │ ├── echo.go │ │ ├── endpoint.go │ │ ├── example_test.go │ │ ├── extension.go │ │ ├── extension_test.go │ │ ├── helper_posix.go │ │ ├── interface.go │ │ ├── ipv4.go │ │ ├── ipv4_test.go │ │ ├── ipv6.go │ │ ├── listen_posix.go │ │ ├── listen_stub.go │ │ ├── message.go │ │ ├── message_test.go │ │ ├── messagebody.go │ │ ├── mpls.go │ │ ├── multipart.go │ │ ├── multipart_test.go │ │ ├── packettoobig.go │ │ ├── paramprob.go │ │ ├── ping_test.go │ │ ├── sys_freebsd.go │ │ └── timeexceeded.go │ ├── idna │ │ ├── example_test.go │ │ ├── idna.go │ │ ├── idna_test.go │ │ ├── punycode.go │ │ ├── punycode_test.go │ │ ├── tables.go │ │ ├── trie.go │ │ └── trieval.go │ ├── internal │ │ ├── iana │ │ │ ├── const.go │ │ │ └── gen.go │ │ ├── nettest │ │ │ ├── helper_bsd.go │ │ │ ├── helper_nobsd.go │ │ │ ├── helper_posix.go │ │ │ ├── helper_stub.go │ │ │ ├── helper_unix.go │ │ │ ├── helper_windows.go │ │ │ ├── interface.go │ │ │ ├── rlimit.go │ │ │ └── stack.go │ │ ├── socket │ │ │ ├── cmsghdr.go │ │ │ ├── cmsghdr_bsd.go │ │ │ ├── cmsghdr_linux_32bit.go │ │ │ ├── cmsghdr_linux_64bit.go │ │ │ ├── cmsghdr_solaris_64bit.go │ │ │ ├── cmsghdr_stub.go │ │ │ ├── defs_darwin.go │ │ │ ├── defs_dragonfly.go │ │ │ ├── defs_freebsd.go │ │ │ ├── defs_linux.go │ │ │ ├── defs_netbsd.go │ │ │ ├── defs_openbsd.go │ │ │ ├── defs_solaris.go │ │ │ ├── error_unix.go │ │ │ ├── error_windows.go │ │ │ ├── iovec_32bit.go │ │ │ ├── iovec_64bit.go │ │ │ ├── iovec_solaris_64bit.go │ │ │ ├── iovec_stub.go │ │ │ ├── mmsghdr_stub.go │ │ │ ├── mmsghdr_unix.go │ │ │ ├── msghdr_bsd.go │ │ │ ├── msghdr_bsdvar.go │ │ │ ├── msghdr_linux.go │ │ │ ├── msghdr_linux_32bit.go │ │ │ ├── msghdr_linux_64bit.go │ │ │ ├── msghdr_openbsd.go │ │ │ ├── msghdr_solaris_64bit.go │ │ │ ├── msghdr_stub.go │ │ │ ├── rawconn.go │ │ │ ├── rawconn_mmsg.go │ │ │ ├── rawconn_msg.go │ │ │ ├── rawconn_nommsg.go │ │ │ ├── rawconn_nomsg.go │ │ │ ├── rawconn_stub.go │ │ │ ├── reflect.go │ │ │ ├── socket.go │ │ │ ├── socket_go1_9_test.go │ │ │ ├── socket_test.go │ │ │ ├── sys.go │ │ │ ├── sys_bsd.go │ │ │ ├── sys_bsdvar.go │ │ │ ├── sys_darwin.go │ │ │ ├── sys_dragonfly.go │ │ │ ├── sys_linux.go │ │ │ ├── sys_linux_386.go │ │ │ ├── sys_linux_386.s │ │ │ ├── sys_linux_amd64.go │ │ │ ├── sys_linux_arm.go │ │ │ ├── sys_linux_arm64.go │ │ │ ├── sys_linux_mips.go │ │ │ ├── sys_linux_mips64.go │ │ │ ├── sys_linux_mips64le.go │ │ │ ├── sys_linux_mipsle.go │ │ │ ├── sys_linux_ppc64.go │ │ │ ├── sys_linux_ppc64le.go │ │ │ ├── sys_linux_s390x.go │ │ │ ├── sys_linux_s390x.s │ │ │ ├── sys_netbsd.go │ │ │ ├── sys_posix.go │ │ │ ├── sys_solaris.go │ │ │ ├── sys_solaris_amd64.s │ │ │ ├── sys_stub.go │ │ │ ├── sys_unix.go │ │ │ ├── sys_windows.go │ │ │ ├── zsys_darwin_386.go │ │ │ ├── zsys_darwin_amd64.go │ │ │ ├── zsys_darwin_arm.go │ │ │ ├── zsys_darwin_arm64.go │ │ │ ├── zsys_dragonfly_amd64.go │ │ │ ├── zsys_freebsd_386.go │ │ │ ├── zsys_freebsd_amd64.go │ │ │ ├── zsys_freebsd_arm.go │ │ │ ├── zsys_linux_386.go │ │ │ ├── zsys_linux_amd64.go │ │ │ ├── zsys_linux_arm.go │ │ │ ├── zsys_linux_arm64.go │ │ │ ├── zsys_linux_mips.go │ │ │ ├── zsys_linux_mips64.go │ │ │ ├── zsys_linux_mips64le.go │ │ │ ├── zsys_linux_mipsle.go │ │ │ ├── zsys_linux_ppc64.go │ │ │ ├── zsys_linux_ppc64le.go │ │ │ ├── zsys_linux_s390x.go │ │ │ ├── zsys_netbsd_386.go │ │ │ ├── zsys_netbsd_amd64.go │ │ │ ├── zsys_netbsd_arm.go │ │ │ ├── zsys_openbsd_386.go │ │ │ ├── zsys_openbsd_amd64.go │ │ │ ├── zsys_openbsd_arm.go │ │ │ └── zsys_solaris_amd64.go │ │ └── timeseries │ │ │ ├── timeseries.go │ │ │ └── timeseries_test.go │ ├── ipv4 │ │ ├── batch.go │ │ ├── bpf_test.go │ │ ├── control.go │ │ ├── control_bsd.go │ │ ├── control_pktinfo.go │ │ ├── control_stub.go │ │ ├── control_test.go │ │ ├── control_unix.go │ │ ├── control_windows.go │ │ ├── defs_darwin.go │ │ ├── defs_dragonfly.go │ │ ├── defs_freebsd.go │ │ ├── defs_linux.go │ │ ├── defs_netbsd.go │ │ ├── defs_openbsd.go │ │ ├── defs_solaris.go │ │ ├── dgramopt.go │ │ ├── doc.go │ │ ├── endpoint.go │ │ ├── example_test.go │ │ ├── gen.go │ │ ├── genericopt.go │ │ ├── header.go │ │ ├── header_test.go │ │ ├── helper.go │ │ ├── iana.go │ │ ├── icmp.go │ │ ├── icmp_linux.go │ │ ├── icmp_stub.go │ │ ├── icmp_test.go │ │ ├── multicast_test.go │ │ ├── multicastlistener_test.go │ │ ├── multicastsockopt_test.go │ │ ├── packet.go │ │ ├── packet_go1_8.go │ │ ├── packet_go1_9.go │ │ ├── payload.go │ │ ├── payload_cmsg.go │ │ ├── payload_cmsg_go1_8.go │ │ ├── payload_cmsg_go1_9.go │ │ ├── payload_nocmsg.go │ │ ├── readwrite_go1_8_test.go │ │ ├── readwrite_go1_9_test.go │ │ ├── readwrite_test.go │ │ ├── sockopt.go │ │ ├── sockopt_posix.go │ │ ├── sockopt_stub.go │ │ ├── sys_asmreq.go │ │ ├── sys_asmreq_stub.go │ │ ├── sys_asmreqn.go │ │ ├── sys_asmreqn_stub.go │ │ ├── sys_bpf.go │ │ ├── sys_bpf_stub.go │ │ ├── sys_bsd.go │ │ ├── sys_darwin.go │ │ ├── sys_dragonfly.go │ │ ├── sys_freebsd.go │ │ ├── sys_linux.go │ │ ├── sys_solaris.go │ │ ├── sys_ssmreq.go │ │ ├── sys_ssmreq_stub.go │ │ ├── sys_stub.go │ │ ├── sys_windows.go │ │ ├── unicast_test.go │ │ ├── unicastsockopt_test.go │ │ ├── zsys_darwin.go │ │ ├── zsys_dragonfly.go │ │ ├── zsys_freebsd_386.go │ │ ├── zsys_freebsd_amd64.go │ │ ├── zsys_freebsd_arm.go │ │ ├── zsys_linux_386.go │ │ ├── zsys_linux_amd64.go │ │ ├── zsys_linux_arm.go │ │ ├── zsys_linux_arm64.go │ │ ├── zsys_linux_mips.go │ │ ├── zsys_linux_mips64.go │ │ ├── zsys_linux_mips64le.go │ │ ├── zsys_linux_mipsle.go │ │ ├── zsys_linux_ppc.go │ │ ├── zsys_linux_ppc64.go │ │ ├── zsys_linux_ppc64le.go │ │ ├── zsys_linux_s390x.go │ │ ├── zsys_netbsd.go │ │ ├── zsys_openbsd.go │ │ └── zsys_solaris.go │ ├── ipv6 │ │ ├── batch.go │ │ ├── bpf_test.go │ │ ├── control.go │ │ ├── control_rfc2292_unix.go │ │ ├── control_rfc3542_unix.go │ │ ├── control_stub.go │ │ ├── control_test.go │ │ ├── control_unix.go │ │ ├── control_windows.go │ │ ├── defs_darwin.go │ │ ├── defs_dragonfly.go │ │ ├── defs_freebsd.go │ │ ├── defs_linux.go │ │ ├── defs_netbsd.go │ │ ├── defs_openbsd.go │ │ ├── defs_solaris.go │ │ ├── dgramopt.go │ │ ├── doc.go │ │ ├── endpoint.go │ │ ├── example_test.go │ │ ├── gen.go │ │ ├── genericopt.go │ │ ├── header.go │ │ ├── header_test.go │ │ ├── helper.go │ │ ├── iana.go │ │ ├── icmp.go │ │ ├── icmp_bsd.go │ │ ├── icmp_linux.go │ │ ├── icmp_solaris.go │ │ ├── icmp_stub.go │ │ ├── icmp_test.go │ │ ├── icmp_windows.go │ │ ├── mocktransponder_test.go │ │ ├── multicast_test.go │ │ ├── multicastlistener_test.go │ │ ├── multicastsockopt_test.go │ │ ├── payload.go │ │ ├── payload_cmsg.go │ │ ├── payload_cmsg_go1_8.go │ │ ├── payload_cmsg_go1_9.go │ │ ├── payload_nocmsg.go │ │ ├── readwrite_go1_8_test.go │ │ ├── readwrite_go1_9_test.go │ │ ├── readwrite_test.go │ │ ├── sockopt.go │ │ ├── sockopt_posix.go │ │ ├── sockopt_stub.go │ │ ├── sockopt_test.go │ │ ├── sys_asmreq.go │ │ ├── sys_asmreq_stub.go │ │ ├── sys_bpf.go │ │ ├── sys_bpf_stub.go │ │ ├── sys_bsd.go │ │ ├── sys_darwin.go │ │ ├── sys_freebsd.go │ │ ├── sys_linux.go │ │ ├── sys_solaris.go │ │ ├── sys_ssmreq.go │ │ ├── sys_ssmreq_stub.go │ │ ├── sys_stub.go │ │ ├── sys_windows.go │ │ ├── unicast_test.go │ │ ├── unicastsockopt_test.go │ │ ├── zsys_darwin.go │ │ ├── zsys_dragonfly.go │ │ ├── zsys_freebsd_386.go │ │ ├── zsys_freebsd_amd64.go │ │ ├── zsys_freebsd_arm.go │ │ ├── zsys_linux_386.go │ │ ├── zsys_linux_amd64.go │ │ ├── zsys_linux_arm.go │ │ ├── zsys_linux_arm64.go │ │ ├── zsys_linux_mips.go │ │ ├── zsys_linux_mips64.go │ │ ├── zsys_linux_mips64le.go │ │ ├── zsys_linux_mipsle.go │ │ ├── zsys_linux_ppc.go │ │ ├── zsys_linux_ppc64.go │ │ ├── zsys_linux_ppc64le.go │ │ ├── zsys_linux_s390x.go │ │ ├── zsys_netbsd.go │ │ ├── zsys_openbsd.go │ │ └── zsys_solaris.go │ ├── lex │ │ └── httplex │ │ │ ├── httplex.go │ │ │ └── httplex_test.go │ ├── lif │ │ ├── address.go │ │ ├── address_test.go │ │ ├── binary.go │ │ ├── defs_solaris.go │ │ ├── lif.go │ │ ├── link.go │ │ ├── link_test.go │ │ ├── sys.go │ │ ├── sys_solaris_amd64.s │ │ ├── syscall.go │ │ └── zsys_solaris_amd64.go │ ├── nettest │ │ ├── conntest.go │ │ ├── conntest_go16.go │ │ ├── conntest_go17.go │ │ └── conntest_test.go │ ├── netutil │ │ ├── listen.go │ │ └── listen_test.go │ ├── proxy │ │ ├── direct.go │ │ ├── per_host.go │ │ ├── per_host_test.go │ │ ├── proxy.go │ │ ├── proxy_test.go │ │ └── socks5.go │ ├── publicsuffix │ │ ├── gen.go │ │ ├── list.go │ │ ├── list_test.go │ │ ├── table.go │ │ └── table_test.go │ ├── route │ │ ├── address.go │ │ ├── address_darwin_test.go │ │ ├── address_test.go │ │ ├── binary.go │ │ ├── defs_darwin.go │ │ ├── defs_dragonfly.go │ │ ├── defs_freebsd.go │ │ ├── defs_netbsd.go │ │ ├── defs_openbsd.go │ │ ├── interface.go │ │ ├── interface_announce.go │ │ ├── interface_classic.go │ │ ├── interface_freebsd.go │ │ ├── interface_multicast.go │ │ ├── interface_openbsd.go │ │ ├── message.go │ │ ├── message_darwin_test.go │ │ ├── message_freebsd_test.go │ │ ├── message_test.go │ │ ├── route.go │ │ ├── route_classic.go │ │ ├── route_openbsd.go │ │ ├── route_test.go │ │ ├── sys.go │ │ ├── sys_darwin.go │ │ ├── sys_dragonfly.go │ │ ├── sys_freebsd.go │ │ ├── sys_netbsd.go │ │ ├── sys_openbsd.go │ │ ├── syscall.go │ │ ├── zsys_darwin.go │ │ ├── zsys_dragonfly.go │ │ ├── zsys_freebsd_386.go │ │ ├── zsys_freebsd_amd64.go │ │ ├── zsys_freebsd_arm.go │ │ ├── zsys_netbsd.go │ │ └── zsys_openbsd.go │ ├── trace │ │ ├── events.go │ │ ├── histogram.go │ │ ├── histogram_test.go │ │ ├── trace.go │ │ ├── trace_go16.go │ │ ├── trace_go17.go │ │ └── trace_test.go │ ├── webdav │ │ ├── file.go │ │ ├── file_go1.6.go │ │ ├── file_go1.7.go │ │ ├── file_test.go │ │ ├── if.go │ │ ├── if_test.go │ │ ├── internal │ │ │ └── xml │ │ │ │ ├── README │ │ │ │ ├── atom_test.go │ │ │ │ ├── example_test.go │ │ │ │ ├── marshal.go │ │ │ │ ├── marshal_test.go │ │ │ │ ├── read.go │ │ │ │ ├── read_test.go │ │ │ │ ├── typeinfo.go │ │ │ │ ├── xml.go │ │ │ │ └── xml_test.go │ │ ├── litmus_test_server.go │ │ ├── lock.go │ │ ├── lock_test.go │ │ ├── prop.go │ │ ├── prop_test.go │ │ ├── webdav.go │ │ ├── webdav_test.go │ │ ├── xml.go │ │ └── xml_test.go │ ├── websocket │ │ ├── client.go │ │ ├── dial.go │ │ ├── dial_test.go │ │ ├── exampledial_test.go │ │ ├── examplehandler_test.go │ │ ├── hybi.go │ │ ├── hybi_test.go │ │ ├── server.go │ │ ├── websocket.go │ │ └── websocket_test.go │ └── xsrftoken │ │ ├── xsrf.go │ │ └── xsrf_test.go │ └── sys │ ├── .gitattributes │ ├── .gitignore │ ├── AUTHORS │ ├── CONTRIBUTING.md │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── PATENTS │ ├── README.md │ ├── codereview.cfg │ ├── plan9 │ ├── asm.s │ ├── asm_plan9_386.s │ ├── asm_plan9_amd64.s │ ├── const_plan9.go │ ├── dir_plan9.go │ ├── env_plan9.go │ ├── errors_plan9.go │ ├── mkall.sh │ ├── mkerrors.sh │ ├── mksyscall.pl │ ├── mksysnum_plan9.sh │ ├── pwd_go15_plan9.go │ ├── pwd_plan9.go │ ├── race.go │ ├── race0.go │ ├── str.go │ ├── syscall.go │ ├── syscall_plan9.go │ ├── syscall_test.go │ ├── zsyscall_plan9_386.go │ ├── zsyscall_plan9_amd64.go │ └── zsysnum_plan9.go │ ├── unix │ ├── .gitignore │ ├── README.md │ ├── affinity_linux.go │ ├── asm_darwin_386.s │ ├── asm_darwin_amd64.s │ ├── asm_darwin_arm.s │ ├── asm_darwin_arm64.s │ ├── asm_dragonfly_amd64.s │ ├── asm_freebsd_386.s │ ├── asm_freebsd_amd64.s │ ├── asm_freebsd_arm.s │ ├── asm_linux_386.s │ ├── asm_linux_amd64.s │ ├── asm_linux_arm.s │ ├── asm_linux_arm64.s │ ├── asm_linux_mips64x.s │ ├── asm_linux_mipsx.s │ ├── asm_linux_ppc64x.s │ ├── asm_linux_s390x.s │ ├── asm_netbsd_386.s │ ├── asm_netbsd_amd64.s │ ├── asm_netbsd_arm.s │ ├── asm_openbsd_386.s │ ├── asm_openbsd_amd64.s │ ├── asm_openbsd_arm.s │ ├── asm_solaris_amd64.s │ ├── bluetooth_linux.go │ ├── cap_freebsd.go │ ├── constants.go │ ├── creds_test.go │ ├── dev_darwin.go │ ├── dev_darwin_test.go │ ├── dev_dragonfly.go │ ├── dev_dragonfly_test.go │ ├── dev_freebsd.go │ ├── dev_linux.go │ ├── dev_linux_test.go │ ├── dev_netbsd.go │ ├── dev_netbsd_test.go │ ├── dev_openbsd.go │ ├── dev_openbsd_test.go │ ├── dev_solaris_test.go │ ├── dirent.go │ ├── endian_big.go │ ├── endian_little.go │ ├── env_unix.go │ ├── errors_freebsd_386.go │ ├── errors_freebsd_amd64.go │ ├── errors_freebsd_arm.go │ ├── export_test.go │ ├── flock.go │ ├── flock_linux_32bit.go │ ├── gccgo.go │ ├── gccgo_c.c │ ├── gccgo_linux_amd64.go │ ├── linux │ │ ├── Dockerfile │ │ ├── mkall.go │ │ ├── mksysnum.pl │ │ └── types.go │ ├── mkall.sh │ ├── mkerrors.sh │ ├── mkpost.go │ ├── mksyscall.pl │ ├── mksyscall_solaris.pl │ ├── mksysctl_openbsd.pl │ ├── mksysnum_darwin.pl │ ├── mksysnum_dragonfly.pl │ ├── mksysnum_freebsd.pl │ ├── mksysnum_netbsd.pl │ ├── mksysnum_openbsd.pl │ ├── mmap_unix_test.go │ ├── openbsd_pledge.go │ ├── openbsd_test.go │ ├── pagesize_unix.go │ ├── race.go │ ├── race0.go │ ├── sockcmsg_linux.go │ ├── sockcmsg_unix.go │ ├── str.go │ ├── syscall.go │ ├── syscall_bsd.go │ ├── syscall_bsd_test.go │ ├── syscall_darwin.go │ ├── syscall_darwin_386.go │ ├── syscall_darwin_amd64.go │ ├── syscall_darwin_arm.go │ ├── syscall_darwin_arm64.go │ ├── syscall_dragonfly.go │ ├── syscall_dragonfly_amd64.go │ ├── syscall_freebsd.go │ ├── syscall_freebsd_386.go │ ├── syscall_freebsd_amd64.go │ ├── syscall_freebsd_arm.go │ ├── syscall_freebsd_test.go │ ├── syscall_linux.go │ ├── syscall_linux_386.go │ ├── syscall_linux_amd64.go │ ├── syscall_linux_amd64_gc.go │ ├── syscall_linux_arm.go │ ├── syscall_linux_arm64.go │ ├── syscall_linux_mips64x.go │ ├── syscall_linux_mipsx.go │ ├── syscall_linux_ppc64x.go │ ├── syscall_linux_s390x.go │ ├── syscall_linux_sparc64.go │ ├── syscall_linux_test.go │ ├── syscall_netbsd.go │ ├── syscall_netbsd_386.go │ ├── syscall_netbsd_amd64.go │ ├── syscall_netbsd_arm.go │ ├── syscall_openbsd.go │ ├── syscall_openbsd_386.go │ ├── syscall_openbsd_amd64.go │ ├── syscall_openbsd_arm.go │ ├── syscall_solaris.go │ ├── syscall_solaris_amd64.go │ ├── syscall_solaris_test.go │ ├── syscall_test.go │ ├── syscall_unix.go │ ├── syscall_unix_gc.go │ ├── syscall_unix_test.go │ ├── timestruct.go │ ├── timestruct_test.go │ ├── types_darwin.go │ ├── types_dragonfly.go │ ├── types_freebsd.go │ ├── types_netbsd.go │ ├── types_openbsd.go │ ├── types_solaris.go │ ├── zerrors_darwin_386.go │ ├── zerrors_darwin_amd64.go │ ├── zerrors_darwin_arm.go │ ├── zerrors_darwin_arm64.go │ ├── zerrors_dragonfly_amd64.go │ ├── zerrors_freebsd_386.go │ ├── zerrors_freebsd_amd64.go │ ├── zerrors_freebsd_arm.go │ ├── zerrors_linux_386.go │ ├── zerrors_linux_amd64.go │ ├── zerrors_linux_arm.go │ ├── zerrors_linux_arm64.go │ ├── zerrors_linux_mips.go │ ├── zerrors_linux_mips64.go │ ├── zerrors_linux_mips64le.go │ ├── zerrors_linux_mipsle.go │ ├── zerrors_linux_ppc64.go │ ├── zerrors_linux_ppc64le.go │ ├── zerrors_linux_s390x.go │ ├── zerrors_linux_sparc64.go │ ├── zerrors_netbsd_386.go │ ├── zerrors_netbsd_amd64.go │ ├── zerrors_netbsd_arm.go │ ├── zerrors_openbsd_386.go │ ├── zerrors_openbsd_amd64.go │ ├── zerrors_openbsd_arm.go │ ├── zerrors_solaris_amd64.go │ ├── zptrace386_linux.go │ ├── zptracearm_linux.go │ ├── zptracemips_linux.go │ ├── zptracemipsle_linux.go │ ├── zsyscall_darwin_386.go │ ├── zsyscall_darwin_amd64.go │ ├── zsyscall_darwin_arm.go │ ├── zsyscall_darwin_arm64.go │ ├── zsyscall_dragonfly_amd64.go │ ├── zsyscall_freebsd_386.go │ ├── zsyscall_freebsd_amd64.go │ ├── zsyscall_freebsd_arm.go │ ├── zsyscall_linux_386.go │ ├── zsyscall_linux_amd64.go │ ├── zsyscall_linux_arm.go │ ├── zsyscall_linux_arm64.go │ ├── zsyscall_linux_mips.go │ ├── zsyscall_linux_mips64.go │ ├── zsyscall_linux_mips64le.go │ ├── zsyscall_linux_mipsle.go │ ├── zsyscall_linux_ppc64.go │ ├── zsyscall_linux_ppc64le.go │ ├── zsyscall_linux_s390x.go │ ├── zsyscall_linux_sparc64.go │ ├── zsyscall_netbsd_386.go │ ├── zsyscall_netbsd_amd64.go │ ├── zsyscall_netbsd_arm.go │ ├── zsyscall_openbsd_386.go │ ├── zsyscall_openbsd_amd64.go │ ├── zsyscall_openbsd_arm.go │ ├── zsyscall_solaris_amd64.go │ ├── zsysctl_openbsd_386.go │ ├── zsysctl_openbsd_amd64.go │ ├── zsysctl_openbsd_arm.go │ ├── zsysnum_darwin_386.go │ ├── zsysnum_darwin_amd64.go │ ├── zsysnum_darwin_arm.go │ ├── zsysnum_darwin_arm64.go │ ├── zsysnum_dragonfly_amd64.go │ ├── zsysnum_freebsd_386.go │ ├── zsysnum_freebsd_amd64.go │ ├── zsysnum_freebsd_arm.go │ ├── zsysnum_linux_386.go │ ├── zsysnum_linux_amd64.go │ ├── zsysnum_linux_arm.go │ ├── zsysnum_linux_arm64.go │ ├── zsysnum_linux_mips.go │ ├── zsysnum_linux_mips64.go │ ├── zsysnum_linux_mips64le.go │ ├── zsysnum_linux_mipsle.go │ ├── zsysnum_linux_ppc64.go │ ├── zsysnum_linux_ppc64le.go │ ├── zsysnum_linux_s390x.go │ ├── zsysnum_linux_sparc64.go │ ├── zsysnum_netbsd_386.go │ ├── zsysnum_netbsd_amd64.go │ ├── zsysnum_netbsd_arm.go │ ├── zsysnum_openbsd_386.go │ ├── zsysnum_openbsd_amd64.go │ ├── zsysnum_openbsd_arm.go │ ├── ztypes_darwin_386.go │ ├── ztypes_darwin_amd64.go │ ├── ztypes_darwin_arm.go │ ├── ztypes_darwin_arm64.go │ ├── ztypes_dragonfly_amd64.go │ ├── ztypes_freebsd_386.go │ ├── ztypes_freebsd_amd64.go │ ├── ztypes_freebsd_arm.go │ ├── ztypes_linux_386.go │ ├── ztypes_linux_amd64.go │ ├── ztypes_linux_arm.go │ ├── ztypes_linux_arm64.go │ ├── ztypes_linux_mips.go │ ├── ztypes_linux_mips64.go │ ├── ztypes_linux_mips64le.go │ ├── ztypes_linux_mipsle.go │ ├── ztypes_linux_ppc64.go │ ├── ztypes_linux_ppc64le.go │ ├── ztypes_linux_s390x.go │ ├── ztypes_linux_sparc64.go │ ├── ztypes_netbsd_386.go │ ├── ztypes_netbsd_amd64.go │ ├── ztypes_netbsd_arm.go │ ├── ztypes_openbsd_386.go │ ├── ztypes_openbsd_amd64.go │ ├── ztypes_openbsd_arm.go │ └── ztypes_solaris_amd64.go │ └── windows │ ├── asm_windows_386.s │ ├── asm_windows_amd64.s │ ├── dll_windows.go │ ├── env_windows.go │ ├── eventlog.go │ ├── exec_windows.go │ ├── memory_windows.go │ ├── mksyscall.go │ ├── race.go │ ├── race0.go │ ├── registry │ ├── export_test.go │ ├── key.go │ ├── mksyscall.go │ ├── registry_test.go │ ├── syscall.go │ ├── value.go │ └── zsyscall_windows.go │ ├── security_windows.go │ ├── service.go │ ├── str.go │ ├── svc │ ├── debug │ │ ├── log.go │ │ └── service.go │ ├── event.go │ ├── eventlog │ │ ├── install.go │ │ ├── log.go │ │ └── log_test.go │ ├── example │ │ ├── beep.go │ │ ├── install.go │ │ ├── main.go │ │ ├── manage.go │ │ └── service.go │ ├── go12.c │ ├── go12.go │ ├── go13.go │ ├── mgr │ │ ├── config.go │ │ ├── mgr.go │ │ ├── mgr_test.go │ │ └── service.go │ ├── security.go │ ├── service.go │ ├── svc_test.go │ ├── sys_386.s │ └── sys_amd64.s │ ├── syscall.go │ ├── syscall_test.go │ ├── syscall_windows.go │ ├── syscall_windows_test.go │ ├── types_windows.go │ ├── types_windows_386.go │ ├── types_windows_amd64.go │ └── zsyscall_windows.go └── gopkg.in └── olivere └── elastic.v5 ├── .gitignore ├── .travis.yml ├── CHANGELOG-3.0.md ├── CHANGELOG-5.0.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── ISSUE_TEMPLATE.md ├── LICENSE ├── README.md ├── acknowledged_response.go ├── backoff.go ├── backoff_test.go ├── bulk.go ├── bulk_delete_request.go ├── bulk_delete_request_easyjson.go ├── bulk_delete_request_test.go ├── bulk_index_request.go ├── bulk_index_request_easyjson.go ├── bulk_index_request_test.go ├── bulk_processor.go ├── bulk_processor_test.go ├── bulk_request.go ├── bulk_test.go ├── bulk_update_request.go ├── bulk_update_request_easyjson.go ├── bulk_update_request_test.go ├── canonicalize.go ├── canonicalize_test.go ├── clear_scroll.go ├── clear_scroll_test.go ├── client.go ├── client_test.go ├── cluster-test ├── Makefile ├── README.md └── cluster-test.go ├── cluster_health.go ├── cluster_health_test.go ├── cluster_state.go ├── cluster_state_test.go ├── cluster_stats.go ├── cluster_stats_test.go ├── config ├── config.go ├── config_test.go └── doc.go ├── connection.go ├── count.go ├── count_test.go ├── decoder.go ├── decoder_test.go ├── delete.go ├── delete_by_query.go ├── delete_by_query_test.go ├── delete_template.go ├── delete_template_test.go ├── delete_test.go ├── doc.go ├── errors.go ├── errors_test.go ├── etc ├── elasticsearch.yml ├── ingest-geoip │ └── .gitkeep ├── jvm.options ├── log4j2.properties └── scripts │ └── .gitkeep ├── example_test.go ├── exists.go ├── exists_test.go ├── explain.go ├── explain_test.go ├── fetch_source_context.go ├── fetch_source_context_test.go ├── field_caps.go ├── field_caps_test.go ├── field_stats.go ├── field_stats_test.go ├── geo_point.go ├── geo_point_test.go ├── get.go ├── get_template.go ├── get_template_test.go ├── get_test.go ├── highlight.go ├── highlight_test.go ├── index.go ├── index_test.go ├── indices_analyze.go ├── indices_analyze_test.go ├── indices_close.go ├── indices_close_test.go ├── indices_create.go ├── indices_create_test.go ├── indices_delete.go ├── indices_delete_template.go ├── indices_delete_test.go ├── indices_exists.go ├── indices_exists_template.go ├── indices_exists_template_test.go ├── indices_exists_test.go ├── indices_exists_type.go ├── indices_exists_type_test.go ├── indices_flush.go ├── indices_flush_test.go ├── indices_forcemerge.go ├── indices_forcemerge_test.go ├── indices_get.go ├── indices_get_aliases.go ├── indices_get_aliases_test.go ├── indices_get_field_mapping.go ├── indices_get_field_mapping_test.go ├── indices_get_mapping.go ├── indices_get_mapping_test.go ├── indices_get_settings.go ├── indices_get_settings_test.go ├── indices_get_template.go ├── indices_get_template_test.go ├── indices_get_test.go ├── indices_open.go ├── indices_open_test.go ├── indices_put_alias.go ├── indices_put_alias_test.go ├── indices_put_mapping.go ├── indices_put_mapping_test.go ├── indices_put_settings.go ├── indices_put_settings_test.go ├── indices_put_template.go ├── indices_refresh.go ├── indices_refresh_test.go ├── indices_rollover.go ├── indices_rollover_test.go ├── indices_segments.go ├── indices_segments_test.go ├── indices_shrink.go ├── indices_shrink_test.go ├── indices_stats.go ├── indices_stats_test.go ├── ingest_delete_pipeline.go ├── ingest_delete_pipeline_test.go ├── ingest_get_pipeline.go ├── ingest_get_pipeline_test.go ├── ingest_put_pipeline.go ├── ingest_put_pipeline_test.go ├── ingest_simulate_pipeline.go ├── ingest_simulate_pipeline_test.go ├── inner_hit.go ├── inner_hit_test.go ├── logger.go ├── mget.go ├── mget_test.go ├── msearch.go ├── msearch_test.go ├── mtermvectors.go ├── mtermvectors_test.go ├── nodes_info.go ├── nodes_info_test.go ├── nodes_stats.go ├── nodes_stats_test.go ├── percolate_test.go ├── ping.go ├── ping_test.go ├── plugins.go ├── plugins_test.go ├── put_template.go ├── put_template_test.go ├── query.go ├── recipes ├── bulk_insert │ └── bulk_insert.go ├── connect │ └── connect.go └── sliced_scroll │ └── sliced_scroll.go ├── reindex.go ├── reindex_test.go ├── request.go ├── request_test.go ├── rescore.go ├── rescorer.go ├── response.go ├── response_test.go ├── retrier.go ├── retrier_test.go ├── retry.go ├── retry_test.go ├── run-es.sh ├── script.go ├── script_test.go ├── scroll.go ├── scroll_test.go ├── search.go ├── search_aggs.go ├── search_aggs_bucket_children.go ├── search_aggs_bucket_children_test.go ├── search_aggs_bucket_date_histogram.go ├── search_aggs_bucket_date_histogram_test.go ├── search_aggs_bucket_date_range.go ├── search_aggs_bucket_date_range_test.go ├── search_aggs_bucket_filter.go ├── search_aggs_bucket_filter_test.go ├── search_aggs_bucket_filters.go ├── search_aggs_bucket_filters_test.go ├── search_aggs_bucket_geo_distance.go ├── search_aggs_bucket_geo_distance_test.go ├── search_aggs_bucket_geohash_grid.go ├── search_aggs_bucket_geohash_grid_test.go ├── search_aggs_bucket_global.go ├── search_aggs_bucket_global_test.go ├── search_aggs_bucket_histogram.go ├── search_aggs_bucket_histogram_test.go ├── search_aggs_bucket_ip_range.go ├── search_aggs_bucket_ip_range_test.go ├── search_aggs_bucket_missing.go ├── search_aggs_bucket_missing_test.go ├── search_aggs_bucket_nested.go ├── search_aggs_bucket_nested_test.go ├── search_aggs_bucket_range.go ├── search_aggs_bucket_range_test.go ├── search_aggs_bucket_reverse_nested.go ├── search_aggs_bucket_reverse_nested_test.go ├── search_aggs_bucket_sampler.go ├── search_aggs_bucket_sampler_test.go ├── search_aggs_bucket_significant_terms.go ├── search_aggs_bucket_significant_terms_test.go ├── search_aggs_bucket_terms.go ├── search_aggs_bucket_terms_test.go ├── search_aggs_matrix_stats.go ├── search_aggs_matrix_stats_test.go ├── search_aggs_metrics_avg.go ├── search_aggs_metrics_avg_test.go ├── search_aggs_metrics_cardinality.go ├── search_aggs_metrics_cardinality_test.go ├── search_aggs_metrics_extended_stats.go ├── search_aggs_metrics_extended_stats_test.go ├── search_aggs_metrics_geo_bounds.go ├── search_aggs_metrics_geo_bounds_test.go ├── search_aggs_metrics_max.go ├── search_aggs_metrics_max_test.go ├── search_aggs_metrics_min.go ├── search_aggs_metrics_min_test.go ├── search_aggs_metrics_percentile_ranks.go ├── search_aggs_metrics_percentile_ranks_test.go ├── search_aggs_metrics_percentiles.go ├── search_aggs_metrics_percentiles_test.go ├── search_aggs_metrics_stats.go ├── search_aggs_metrics_stats_test.go ├── search_aggs_metrics_sum.go ├── search_aggs_metrics_sum_test.go ├── search_aggs_metrics_top_hits.go ├── search_aggs_metrics_top_hits_test.go ├── search_aggs_metrics_value_count.go ├── search_aggs_metrics_value_count_test.go ├── search_aggs_pipeline_avg_bucket.go ├── search_aggs_pipeline_avg_bucket_test.go ├── search_aggs_pipeline_bucket_script.go ├── search_aggs_pipeline_bucket_script_test.go ├── search_aggs_pipeline_bucket_selector.go ├── search_aggs_pipeline_bucket_selector_test.go ├── search_aggs_pipeline_cumulative_sum.go ├── search_aggs_pipeline_cumulative_sum_test.go ├── search_aggs_pipeline_derivative.go ├── search_aggs_pipeline_derivative_test.go ├── search_aggs_pipeline_max_bucket.go ├── search_aggs_pipeline_max_bucket_test.go ├── search_aggs_pipeline_min_bucket.go ├── search_aggs_pipeline_min_bucket_test.go ├── search_aggs_pipeline_mov_avg.go ├── search_aggs_pipeline_mov_avg_test.go ├── search_aggs_pipeline_percentiles_bucket.go ├── search_aggs_pipeline_percentiles_bucket_test.go ├── search_aggs_pipeline_serial_diff.go ├── search_aggs_pipeline_serial_diff_test.go ├── search_aggs_pipeline_stats_bucket.go ├── search_aggs_pipeline_stats_bucket_test.go ├── search_aggs_pipeline_sum_bucket.go ├── search_aggs_pipeline_sum_bucket_test.go ├── search_aggs_pipeline_test.go ├── search_aggs_test.go ├── search_collapse_builder.go ├── search_collapse_builder_test.go ├── search_queries_bool.go ├── search_queries_bool_test.go ├── search_queries_boosting.go ├── search_queries_boosting_test.go ├── search_queries_common_terms.go ├── search_queries_common_terms_test.go ├── search_queries_constant_score.go ├── search_queries_constant_score_test.go ├── search_queries_dis_max.go ├── search_queries_dis_max_test.go ├── search_queries_exists.go ├── search_queries_exists_test.go ├── search_queries_fsq.go ├── search_queries_fsq_score_funcs.go ├── search_queries_fsq_test.go ├── search_queries_fuzzy.go ├── search_queries_fuzzy_test.go ├── search_queries_geo_bounding_box.go ├── search_queries_geo_bounding_box_test.go ├── search_queries_geo_distance.go ├── search_queries_geo_distance_test.go ├── search_queries_geo_polygon.go ├── search_queries_geo_polygon_test.go ├── search_queries_has_child.go ├── search_queries_has_child_test.go ├── search_queries_has_parent.go ├── search_queries_has_parent_test.go ├── search_queries_ids.go ├── search_queries_ids_test.go ├── search_queries_indices.go ├── search_queries_indices_test.go ├── search_queries_match.go ├── search_queries_match_all.go ├── search_queries_match_all_test.go ├── search_queries_match_none.go ├── search_queries_match_none_test.go ├── search_queries_match_phrase.go ├── search_queries_match_phrase_prefix.go ├── search_queries_match_phrase_prefix_test.go ├── search_queries_match_phrase_test.go ├── search_queries_match_test.go ├── search_queries_more_like_this.go ├── search_queries_more_like_this_test.go ├── search_queries_multi_match.go ├── search_queries_multi_match_test.go ├── search_queries_nested.go ├── search_queries_nested_test.go ├── search_queries_parent_id.go ├── search_queries_parent_id_test.go ├── search_queries_percolator.go ├── search_queries_percolator_test.go ├── search_queries_prefix.go ├── search_queries_prefix_example_test.go ├── search_queries_prefix_test.go ├── search_queries_query_string.go ├── search_queries_query_string_test.go ├── search_queries_range.go ├── search_queries_range_test.go ├── search_queries_raw_string.go ├── search_queries_raw_string_test.go ├── search_queries_regexp.go ├── search_queries_regexp_test.go ├── search_queries_script.go ├── search_queries_script_test.go ├── search_queries_simple_query_string.go ├── search_queries_simple_query_string_test.go ├── search_queries_slice.go ├── search_queries_slice_test.go ├── search_queries_term.go ├── search_queries_term_test.go ├── search_queries_terms.go ├── search_queries_terms_test.go ├── search_queries_type.go ├── search_queries_type_test.go ├── search_queries_wildcard.go ├── search_queries_wildcard_test.go ├── search_request.go ├── search_request_test.go ├── search_source.go ├── search_source_test.go ├── search_suggester_test.go ├── search_terms_lookup.go ├── search_terms_lookup_test.go ├── search_test.go ├── setup_test.go ├── snapshot_create.go ├── snapshot_create_repository.go ├── snapshot_create_repository_test.go ├── snapshot_create_test.go ├── snapshot_delete_repository.go ├── snapshot_delete_repository_test.go ├── snapshot_get_repository.go ├── snapshot_get_repository_test.go ├── snapshot_verify_repository.go ├── snapshot_verify_repository_test.go ├── sort.go ├── sort_test.go ├── suggest.go ├── suggest_field.go ├── suggest_field_test.go ├── suggest_test.go ├── suggester.go ├── suggester_completion.go ├── suggester_completion_fuzzy.go ├── suggester_completion_fuzzy_test.go ├── suggester_completion_test.go ├── suggester_context.go ├── suggester_context_category.go ├── suggester_context_category_test.go ├── suggester_context_geo.go ├── suggester_context_geo_test.go ├── suggester_context_test.go ├── suggester_phrase.go ├── suggester_phrase_test.go ├── suggester_term.go ├── suggester_term_test.go ├── tasks_cancel.go ├── tasks_cancel_test.go ├── tasks_get_task.go ├── tasks_get_task_test.go ├── tasks_list.go ├── tasks_list_test.go ├── termvectors.go ├── termvectors_test.go ├── update.go ├── update_by_query.go ├── update_by_query_test.go ├── update_integration_test.go ├── update_test.go └── uritemplates ├── LICENSE ├── uritemplates.go ├── utils.go └── utils_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | marija-server -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | env: 4 | - GIMME_OS=linux GIMME_ARCH=amd64 5 | 6 | go: 7 | - master 8 | 9 | install: 10 | - go get -d -v ./... 11 | 12 | script: 13 | - go build -v ./... 14 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.9.4 AS go 2 | 3 | RUN apt update -y 4 | 5 | ENV GOPATH /go 6 | ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH 7 | 8 | ADD . /go/src/github.com/dutchcoders/marija 9 | 10 | ARG LDFLAGS="" 11 | 12 | WORKDIR /go/src/github.com/dutchcoders/marija 13 | RUN go build -ldflags="$(go run scripts/gen-ldflags.go)" -o /go/bin/app github.com/dutchcoders/marija 14 | 15 | FROM debian 16 | RUN apt-get update && apt-get install -y ca-certificates 17 | 18 | COPY --from=go /go/bin/app /marija/marija 19 | 20 | ARG LDFLAGS="" 21 | RUN mkdir /config/ 22 | ADD config-docker.toml /config/config.toml 23 | 24 | ENTRYPOINT ["/marija/marija", "-p", "0.0.0.0:8080", "--config", "/config/config.toml"] 25 | EXPOSE 8080 26 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Marija, (C) 2016 Marija, Inc. 2 | 3 | This product includes software developed at Marija, Inc. 4 | (https://marija.io/). 5 | 6 | The Marija project contains unmodified/modified subcomponents too with 7 | separate copyright notices and license terms. Your use of the source 8 | code for these subcomponents is subject to the terms and conditions 9 | of the following licenses. 10 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | LDFLAGS="$(go run -exec ~/.gopath/bin/sign-wrapper.sh scripts/gen-ldflags.go)" 2 | env GOOS=linux GOARCH=amd64 go build -ldflags "$LDFLAGS" -o ./bin/marija-linux-amd64 3 | #go build -ldflags "$LDFLAGS" -o ./bin/marija-macos-amd64 4 | 5 | -------------------------------------------------------------------------------- /config-docker.toml: -------------------------------------------------------------------------------- 1 | [datasource] 2 | 3 | [datasource.elasticsearch] 4 | type="elasticsearch" 5 | url="http://127.0.0.1:9200/test" 6 | 7 | [[logging]] 8 | output = "stdout" 9 | level = "debug" 10 | -------------------------------------------------------------------------------- /config.toml.sample: -------------------------------------------------------------------------------- 1 | [datasource] 2 | 3 | [datasource.elasticsearch] 4 | type="elasticsearch" 5 | url="http://127.0.0.1:9200/demo_index" 6 | #username= 7 | #password= 8 | 9 | #[datasource.elasticsearch.scripted-fields] 10 | #scripted-field="params['_source']['field1'] + '_' + params['_source']['field2']" 11 | 12 | [datasource.tronscan] 13 | type="tronscan" 14 | 15 | [datasource.twitter] 16 | type="twitter" 17 | consumer_key="" 18 | consumer_secret="" 19 | token="" 20 | token_secret="" 21 | 22 | [datasource.blockchain] 23 | type="blockchain" 24 | 25 | [[logging]] 26 | output = "stdout" 27 | level = "debug" 28 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "github.com/dutchcoders/marija/cmd" 4 | 5 | func main() { 6 | app := cmd.New() 7 | app.RunAndExitOnError() 8 | } 9 | -------------------------------------------------------------------------------- /server/cache.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | _ "log" 5 | "sync" 6 | 7 | "github.com/dutchcoders/marija/server/datasources" 8 | ) 9 | 10 | type ItemCache struct { 11 | sync.Map 12 | } 13 | 14 | func (ic *ItemCache) Store(key string, items []datasources.Item) { 15 | ic.Map.Store(key, items) 16 | } 17 | 18 | func (is *ItemCache) LoadOrStore(key string, value []datasources.Item) ([]datasources.Item, bool) { 19 | actual, ok := is.Map.LoadOrStore(key, value) 20 | if !ok { 21 | return nil, false 22 | } 23 | 24 | return actual.([]datasources.Item), true 25 | } 26 | 27 | func (is *ItemCache) Load(key string) ([]datasources.Item, bool) { 28 | value, ok := is.Map.Load(key) 29 | if !ok { 30 | return nil, false 31 | } 32 | 33 | return value.([]datasources.Item), true 34 | } 35 | -------------------------------------------------------------------------------- /server/config.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | _ "log" 5 | 6 | "github.com/BurntSushi/toml" 7 | ) 8 | 9 | type config struct { 10 | path string 11 | address string 12 | debug bool 13 | 14 | ListenerString string `toml:"listen"` 15 | 16 | Username string `toml:"username"` 17 | Password string `toml:"password"` 18 | Service string `toml:"service"` 19 | 20 | Datasources map[string]toml.Primitive `toml:"datasource"` 21 | 22 | Logging []struct { 23 | Output string `toml:"output"` 24 | Level string `toml:"level"` 25 | } `toml:"logging"` 26 | } 27 | -------------------------------------------------------------------------------- /server/datasources/censys/api/error.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import "fmt" 4 | 5 | type Error struct { 6 | ErrorCode int `json:"error_code"` 7 | ErrorString string `json:"error"` 8 | } 9 | 10 | func (de *Error) Error() string { 11 | return fmt.Sprintf("%s (%d)", de.ErrorString, de.ErrorCode) 12 | } 13 | -------------------------------------------------------------------------------- /server/datasources/field.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | type Field struct { 4 | Path string `json:"path"` 5 | Type string `json:"type"` 6 | } 7 | -------------------------------------------------------------------------------- /server/datasources/graph.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | type Graph struct { 4 | ID string `json:"id"` 5 | Fields map[string]interface{} `json:"fields"` 6 | Count int `json:"count"` 7 | Datasource string `json:"datasource"` 8 | } 9 | -------------------------------------------------------------------------------- /server/datasources/index.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | import "context" 4 | 5 | type Index interface { 6 | Search(context.Context, SearchOptions) SearchResponse 7 | // Items(context.Context, ItemsOptions) ItemsResponse 8 | GetFields(context.Context) ([]Field, error) 9 | 10 | Type() string 11 | } 12 | 13 | type SetNamerer interface { 14 | SetName(name string) string 15 | } 16 | 17 | type SetHuberer interface { 18 | SetHub(name string) string 19 | } 20 | -------------------------------------------------------------------------------- /server/datasources/item.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | type Item struct { 4 | ID string `json:"id"` 5 | Fields map[string]interface{} `json:"fields"` 6 | Highlight map[string][]string `json:"highlight"` 7 | } 8 | -------------------------------------------------------------------------------- /server/datasources/node.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | type Node = Graph 4 | -------------------------------------------------------------------------------- /server/datasources/options.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | type SearchOptions struct { 4 | Size int 5 | From int 6 | Query string 7 | 8 | AdvancedQueries []AdvancedQuery 9 | Fields []string 10 | } 11 | -------------------------------------------------------------------------------- /server/datasources/search_response.go: -------------------------------------------------------------------------------- 1 | package datasources 2 | 3 | type SearchResponse interface { 4 | Item() chan Item 5 | Error() chan error 6 | } 7 | 8 | func NewSearchResponse(itemChan chan Item, errorChan chan error) *searchResponse { 9 | return &searchResponse{ 10 | itemChan, 11 | errorChan, 12 | } 13 | } 14 | 15 | type searchResponse struct { 16 | itemChan chan Item 17 | errorChan chan error 18 | } 19 | 20 | func (sr *searchResponse) Item() chan Item { 21 | return sr.itemChan 22 | } 23 | 24 | func (sr *searchResponse) Error() chan error { 25 | return sr.errorChan 26 | } 27 | -------------------------------------------------------------------------------- /server/datasources/twitter/twitter.go: -------------------------------------------------------------------------------- 1 | package twitter 2 | 3 | import ( 4 | logging "github.com/op/go-logging" 5 | ) 6 | 7 | var log = logging.MustGetLogger("marija/datasources/twitter") 8 | 9 | type Config struct { 10 | ConsumerKey string 11 | ConsumerSecret string 12 | 13 | Token string 14 | TokenSecret string 15 | } 16 | -------------------------------------------------------------------------------- /server/unique/unique.go: -------------------------------------------------------------------------------- 1 | package unique 2 | 3 | import ( 4 | _ "log" 5 | "sync" 6 | 7 | "github.com/dutchcoders/marija/server/datasources" 8 | ) 9 | 10 | type Unique struct { 11 | sync.Map // map[string]*datasources.Node 12 | } 13 | 14 | func New() *Unique { 15 | return &Unique{} 16 | } 17 | 18 | func (u *Unique) Get(hash []byte) (*datasources.Node, bool) { 19 | item, ok := u.Load(string(hash)) 20 | if !ok { 21 | return nil, false 22 | } 23 | 24 | return item.(*datasources.Node), ok 25 | } 26 | 27 | func (u *Unique) Add(hash []byte, value *datasources.Node) { 28 | u.Store(string(hash), value) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/.gitignore: -------------------------------------------------------------------------------- 1 | TAGS 2 | tags 3 | .*.swp 4 | tomlcheck/tomlcheck 5 | toml.test 6 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.1 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | install: 11 | - go install ./... 12 | - go get github.com/BurntSushi/toml-test 13 | script: 14 | - export PATH="$PATH:$HOME/gopath/bin" 15 | - make test 16 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/COMPATIBLE: -------------------------------------------------------------------------------- 1 | Compatible with TOML version 2 | [v0.4.0](https://github.com/toml-lang/toml/blob/v0.4.0/versions/en/toml-v0.4.0.md) 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/COPYING: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2004 Sam Hocevar 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/Makefile: -------------------------------------------------------------------------------- 1 | install: 2 | go install ./... 3 | 4 | test: install 5 | go test -v 6 | toml-test toml-test-decoder 7 | toml-test -encoder toml-test-encoder 8 | 9 | fmt: 10 | gofmt -w *.go */*.go 11 | colcheck *.go */*.go 12 | 13 | tags: 14 | find ./ -name '*.go' -print0 | xargs -0 gotags > TAGS 15 | 16 | push: 17 | git push origin master 18 | git push github master 19 | 20 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/_examples/implicit.toml: -------------------------------------------------------------------------------- 1 | # [x] you 2 | # [x.y] don't 3 | # [x.y.z] need these 4 | [x.y.z.w] # for this to work 5 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/_examples/invalid-apples.toml: -------------------------------------------------------------------------------- 1 | # DO NOT WANT 2 | [fruit] 3 | type = "apple" 4 | 5 | [fruit.type] 6 | apple = "yes" 7 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/_examples/readme1.toml: -------------------------------------------------------------------------------- 1 | Age = 25 2 | Cats = [ "Cauchy", "Plato" ] 3 | Pi = 3.14 4 | Perfection = [ 6, 28, 496, 8128 ] 5 | DOB = 1987-07-05T05:45:00Z 6 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/_examples/readme2.toml: -------------------------------------------------------------------------------- 1 | some_key_NAME = "wat" 2 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/COPYING: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2004 Sam Hocevar 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/README.md: -------------------------------------------------------------------------------- 1 | # Implements the TOML test suite interface 2 | 3 | This is an implementation of the interface expected by 4 | [toml-test](https://github.com/BurntSushi/toml-test) for my 5 | [toml parser written in Go](https://github.com/BurntSushi/toml). 6 | In particular, it maps TOML data on `stdin` to a JSON format on `stdout`. 7 | 8 | 9 | Compatible with TOML version 10 | [v0.4.0](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md) 11 | 12 | Compatible with `toml-test` version 13 | [v0.2.0](https://github.com/BurntSushi/toml-test/tree/v0.2.0) 14 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/COPYING: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2004 Sam Hocevar 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/README.md: -------------------------------------------------------------------------------- 1 | # Implements the TOML test suite interface for TOML encoders 2 | 3 | This is an implementation of the interface expected by 4 | [toml-test](https://github.com/BurntSushi/toml-test) for the 5 | [TOML encoder](https://github.com/BurntSushi/toml). 6 | In particular, it maps JSON data on `stdin` to a TOML format on `stdout`. 7 | 8 | 9 | Compatible with TOML version 10 | [v0.4.0](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md) 11 | 12 | Compatible with `toml-test` version 13 | [v0.2.0](https://github.com/BurntSushi/toml-test/tree/v0.2.0) 14 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/tomlv/COPYING: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2004 Sam Hocevar 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/tomlv/README.md: -------------------------------------------------------------------------------- 1 | # TOML Validator 2 | 3 | If Go is installed, it's simple to try it out: 4 | 5 | ```bash 6 | go get github.com/BurntSushi/toml/cmd/tomlv 7 | tomlv some-toml-file.toml 8 | ``` 9 | 10 | You can see the types of every key in a TOML file with: 11 | 12 | ```bash 13 | tomlv -types some-toml-file.toml 14 | ``` 15 | 16 | At the moment, only one error message is reported at a time. Error messages 17 | include line numbers. No output means that the files given are valid TOML, or 18 | there is a bug in `tomlv`. 19 | 20 | Compatible with TOML version 21 | [v0.4.0](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md) 22 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/encoding_types.go: -------------------------------------------------------------------------------- 1 | // +build go1.2 2 | 3 | package toml 4 | 5 | // In order to support Go 1.1, we define our own TextMarshaler and 6 | // TextUnmarshaler types. For Go 1.2+, we just alias them with the 7 | // standard library interfaces. 8 | 9 | import ( 10 | "encoding" 11 | ) 12 | 13 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 14 | // so that Go 1.1 can be supported. 15 | type TextMarshaler encoding.TextMarshaler 16 | 17 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 18 | // here so that Go 1.1 can be supported. 19 | type TextUnmarshaler encoding.TextUnmarshaler 20 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/encoding_types_1.1.go: -------------------------------------------------------------------------------- 1 | // +build !go1.2 2 | 3 | package toml 4 | 5 | // These interfaces were introduced in Go 1.2, so we add them manually when 6 | // compiling for Go 1.1. 7 | 8 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 9 | // so that Go 1.1 can be supported. 10 | type TextMarshaler interface { 11 | MarshalText() (text []byte, err error) 12 | } 13 | 14 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 15 | // here so that Go 1.1 can be supported. 16 | type TextUnmarshaler interface { 17 | UnmarshalText(text []byte) error 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/session.vim: -------------------------------------------------------------------------------- 1 | au BufWritePost *.go silent!make tags > /dev/null 2>&1 2 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.3.3 4 | - tip 5 | before_install: 6 | - go get github.com/mattn/goveralls 7 | - go get golang.org/x/tools/cmd/cover 8 | script: 9 | - $HOME/gopath/bin/goveralls -service=travis-ci 10 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/backoff_test.go: -------------------------------------------------------------------------------- 1 | package backoff 2 | 3 | import ( 4 | "testing" 5 | "time" 6 | ) 7 | 8 | func TestNextBackOffMillis(t *testing.T) { 9 | subtestNextBackOff(t, 0, new(ZeroBackOff)) 10 | subtestNextBackOff(t, Stop, new(StopBackOff)) 11 | } 12 | 13 | func subtestNextBackOff(t *testing.T, expectedValue time.Duration, backOffPolicy BackOff) { 14 | for i := 0; i < 10; i++ { 15 | next := backOffPolicy.NextBackOff() 16 | if next != expectedValue { 17 | t.Errorf("got: %d expected: %d", next, expectedValue) 18 | } 19 | } 20 | } 21 | 22 | func TestConstantBackOff(t *testing.T) { 23 | backoff := NewConstantBackOff(time.Second) 24 | if backoff.NextBackOff() != time.Second { 25 | t.Error("invalid interval") 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/context_test.go: -------------------------------------------------------------------------------- 1 | package backoff 2 | 3 | import ( 4 | "testing" 5 | "time" 6 | 7 | "golang.org/x/net/context" 8 | ) 9 | 10 | func TestContext(t *testing.T) { 11 | b := NewConstantBackOff(time.Millisecond) 12 | ctx, cancel := context.WithCancel(context.Background()) 13 | defer cancel() 14 | 15 | cb := WithContext(b, ctx) 16 | 17 | if cb.Context() != ctx { 18 | t.Error("invalid context") 19 | } 20 | 21 | cancel() 22 | 23 | if cb.NextBackOff() != Stop { 24 | t.Error("invalid next back off") 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/go-twitter/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage 2 | /bin -------------------------------------------------------------------------------- /vendor/github.com/dghubble/go-twitter/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6 4 | - 1.7 5 | - 1.8 6 | - tip 7 | install: 8 | - go get github.com/golang/lint/golint 9 | - go get -v -t ./twitter 10 | script: 11 | - ./test 12 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/go-twitter/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | PKGS=$(go list ./... | grep -v /examples) 5 | FORMATTABLE="$(ls -d */)" 6 | LINTABLE=$(go list ./...) 7 | 8 | go test $PKGS -cover 9 | go vet $PKGS 10 | 11 | echo "Checking gofmt..." 12 | fmtRes=$(gofmt -l $FORMATTABLE) 13 | if [ -n "${fmtRes}" ]; then 14 | echo -e "gofmt checking failed:\n${fmtRes}" 15 | exit 2 16 | fi 17 | 18 | echo "Checking golint..." 19 | lintRes=$(echo $LINTABLE | xargs -n 1 golint) 20 | if [ -n "${lintRes}" ]; then 21 | echo -e "golint checking failed:\n${lintRes}" 22 | exit 2 23 | fi -------------------------------------------------------------------------------- /vendor/github.com/dghubble/go-twitter/twitter/backoffs.go: -------------------------------------------------------------------------------- 1 | package twitter 2 | 3 | import ( 4 | "time" 5 | 6 | "github.com/cenkalti/backoff" 7 | ) 8 | 9 | func newExponentialBackOff() *backoff.ExponentialBackOff { 10 | b := backoff.NewExponentialBackOff() 11 | b.InitialInterval = 5 * time.Second 12 | b.Multiplier = 2.0 13 | b.MaxInterval = 320 * time.Second 14 | b.Reset() 15 | return b 16 | } 17 | 18 | func newAggressiveExponentialBackOff() *backoff.ExponentialBackOff { 19 | b := backoff.NewExponentialBackOff() 20 | b.InitialInterval = 1 * time.Minute 21 | b.Multiplier = 2.0 22 | b.MaxInterval = 16 * time.Minute 23 | b.Reset() 24 | return b 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/go-twitter/twitter/entities_test.go: -------------------------------------------------------------------------------- 1 | package twitter 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestIndices(t *testing.T) { 10 | cases := []struct { 11 | pair Indices 12 | expectedStart int 13 | expectedEnd int 14 | }{ 15 | {Indices{}, 0, 0}, 16 | {Indices{25, 47}, 25, 47}, 17 | } 18 | for _, c := range cases { 19 | assert.Equal(t, c.expectedStart, c.pair.Start()) 20 | assert.Equal(t, c.expectedEnd, c.pair.End()) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.5.4 5 | - 1.6.1 6 | - tip 7 | install: 8 | - go get github.com/golang/lint/golint 9 | - go get -v -t . 10 | script: 11 | - ./test 12 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/context.go: -------------------------------------------------------------------------------- 1 | package oauth1 2 | 3 | import ( 4 | "net/http" 5 | 6 | "golang.org/x/net/context" 7 | ) 8 | 9 | type contextKey struct{} 10 | 11 | // HTTPClient is the context key to associate an *http.Client value with 12 | // a context. 13 | var HTTPClient contextKey 14 | 15 | // NoContext is the default context to use in most cases. 16 | var NoContext = context.TODO() 17 | 18 | // contextTransport gets the Transport from the context client or nil. 19 | func contextTransport(ctx context.Context) http.RoundTripper { 20 | if client, ok := ctx.Value(HTTPClient).(*http.Client); ok { 21 | return client.Transport 22 | } 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/context_test.go: -------------------------------------------------------------------------------- 1 | package oauth1 2 | 3 | import ( 4 | "net/http" 5 | "testing" 6 | 7 | "github.com/stretchr/testify/assert" 8 | "golang.org/x/net/context" 9 | ) 10 | 11 | func TestContextTransport(t *testing.T) { 12 | client := &http.Client{ 13 | Transport: http.DefaultTransport, 14 | } 15 | ctx := context.WithValue(NoContext, HTTPClient, client) 16 | assert.Equal(t, http.DefaultTransport, contextTransport(ctx)) 17 | } 18 | 19 | func TestContextTransport_NoContextClient(t *testing.T) { 20 | assert.Nil(t, contextTransport(NoContext)) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/dropbox/dropbox.go: -------------------------------------------------------------------------------- 1 | // Package dropbox provides constants for using OAuth1 to access Dropbox. 2 | package dropbox 3 | 4 | import ( 5 | "github.com/dghubble/oauth1" 6 | ) 7 | 8 | // Endpoint is Dropbox's OAuth 1 endpoint. 9 | var Endpoint = oauth1.Endpoint{ 10 | RequestTokenURL: "https://api.dropbox.com/1/oauth/request_token", 11 | AuthorizeURL: "https://api.dropbox.com/1/oauth/authorize", 12 | AccessTokenURL: "https://api.dropbox.com/1/oauth/access_token", 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/encode_test.go: -------------------------------------------------------------------------------- 1 | package oauth1 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestPercentEncode(t *testing.T) { 8 | cases := []struct { 9 | input string 10 | expected string 11 | }{ 12 | {" ", "%20"}, 13 | {"%", "%25"}, 14 | {"&", "%26"}, 15 | {"-._", "-._"}, 16 | {" /=+", "%20%2F%3D%2B"}, 17 | {"Ladies + Gentlemen", "Ladies%20%2B%20Gentlemen"}, 18 | {"An encoded string!", "An%20encoded%20string%21"}, 19 | {"Dogs, Cats & Mice", "Dogs%2C%20Cats%20%26%20Mice"}, 20 | {"☃", "%E2%98%83"}, 21 | } 22 | for _, c := range cases { 23 | if output := PercentEncode(c.input); output != c.expected { 24 | t.Errorf("expected %s, got %s", c.expected, output) 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/endpoint.go: -------------------------------------------------------------------------------- 1 | package oauth1 2 | 3 | // Endpoint represents an OAuth1 provider's (server's) request token, 4 | // owner authorization, and access token request URLs. 5 | type Endpoint struct { 6 | // Request URL (Temporary Credential Request URI) 7 | RequestTokenURL string 8 | // Authorize URL (Resource Owner Authorization URI) 9 | AuthorizeURL string 10 | // Access Token URL (Token Request URI) 11 | AccessTokenURL string 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/test: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | go test . -cover 4 | go vet ./... 5 | 6 | echo "Checking gofmt..." 7 | FORMATTABLE="$(find . -type f -name '*.go')" 8 | fmtRes=$(gofmt -l $FORMATTABLE) 9 | if [ -n "${fmtRes}" ]; then 10 | echo -e "gofmt checking failed:\n${fmtRes}" 11 | exit 2 12 | fi 13 | 14 | echo "Checking golint..." 15 | lintRes=$(go list ./... | xargs -n 1 golint) 16 | if [ -n "${lintRes}" ]; then 17 | echo -e "golint checking failed:\n${lintRes}" 18 | exit 2 19 | fi 20 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/oauth1/tumblr/tumblr.go: -------------------------------------------------------------------------------- 1 | // Package tumblr provides constants for using OAuth 1 to access Tumblr. 2 | package tumblr 3 | 4 | import ( 5 | "github.com/dghubble/oauth1" 6 | ) 7 | 8 | // Endpoint is Tumblr's OAuth 1a endpoint. 9 | var Endpoint = oauth1.Endpoint{ 10 | RequestTokenURL: "http://www.tumblr.com/oauth/request_token", 11 | AuthorizeURL: "http://www.tumblr.com/oauth/authorize", 12 | AccessTokenURL: "http://www.tumblr.com/oauth/access_token", 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/dghubble/sling/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6 4 | - 1.7 5 | - tip 6 | install: 7 | - go get github.com/golang/lint/golint 8 | - go get -v -t . 9 | script: 10 | - ./test -------------------------------------------------------------------------------- /vendor/github.com/dghubble/sling/examples/README.md: -------------------------------------------------------------------------------- 1 | 2 | ## Example API Client with Sling 3 | 4 | Try the example Github API Client. 5 | 6 | cd examples 7 | go get . 8 | 9 | List the public issues on the [github.com/golang/go](https://github.com/golang/go) repository. 10 | 11 | go run github.go 12 | 13 | To list your public and private Github issues, pass your [Github Access Token](https://github.com/settings/tokens) 14 | 15 | go run github.go -access-token=xxx 16 | 17 | or set the `GITHUB_ACCESS_TOKEN` environment variable. 18 | 19 | For a complete Github API, see the excellent [google/go-github](https://github.com/google/go-github) package. -------------------------------------------------------------------------------- /vendor/github.com/dghubble/sling/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | PKGS=$(go list ./... | grep -v /examples) 5 | FORMATTABLE="$(find . -maxdepth 1 -type d)" 6 | LINTABLE=$(go list ./...) 7 | 8 | go test $PKGS -cover 9 | go vet $PKGS 10 | 11 | echo "Checking gofmt..." 12 | fmtRes=$(gofmt -l $FORMATTABLE) 13 | if [ -n "${fmtRes}" ]; then 14 | echo -e "gofmt checking failed:\n${fmtRes}" 15 | exit 2 16 | fi 17 | 18 | echo "Checking golint..." 19 | lintRes=$(echo $LINTABLE | xargs -n 1 golint) 20 | if [ -n "${lintRes}" ]; then 21 | echo -e "golint checking failed:\n${lintRes}" 22 | exit 2 23 | fi -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["syntax-dynamic-import", "transform-runtime"], 3 | "presets": [ 4 | [ 5 | "es2015", 6 | { 7 | "modules": false 8 | } 9 | ], 10 | "stage-1", 11 | "react" 12 | ], 13 | "env": { 14 | "start": { 15 | "presets": [ 16 | "react-hmre" 17 | ] 18 | }, 19 | "test": { 20 | "presets": ["es2015", "stage-1", "react"] 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/.env.sample: -------------------------------------------------------------------------------- 1 | WEBSOCKET_URI=ws://demo.marija.io/ws -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | dist 3 | node_modules 4 | .env -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "esversion": 6 3 | } 4 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/README.md: -------------------------------------------------------------------------------- 1 | # Marija-web: repository for Marija frontend 2 | 3 | ## Connecting to the server 4 | 5 | We connect to the server via web sockets. 6 | 7 | By default we try to connect on the 8 | same hostname as where the application is running, and then append /ws as a 9 | path. So for example, if we would access the application at 10 | http://marija.dutchsec.com, the server would need to be listening for web socket 11 | connections at ws://marija.dutchsec.com/ws 12 | 13 | Alternatively, you can specify `WEBSOCKET_URI` in the `.env` file. 14 | 15 | ## Contributing 16 | 17 | Check the issue list at [github.com/dutchcoders/marija/issues](https://github.com/dutchcoders/marija/issues) -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/bindata.go: -------------------------------------------------------------------------------- 1 | package web 2 | 3 | //go:generate go-bindata -pkg web -o bindata_gen.go -ignore \.map\$ dist/... 4 | 5 | var Prefix = "dist" 6 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/deploy.sh: -------------------------------------------------------------------------------- 1 | #rsync -r -z -e "ssh -p 3145" dist.tar.gz remco@m.oornick.com:/home/remco/ 2 | rsync -r -z -e "ssh -p 3145" dist.tar.gz remco@127.0.0.1:/home/remco/ 3 | 4 | 5 | #git subtree split --prefix dist -b dist 6 | #git push dewt dist:master 7 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/jest.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "verbose": true, 3 | "moduleDirectories": [ 4 | "node_modules", 5 | "src" 6 | ], 7 | "moduleFileExtensions": [ 8 | "js", 9 | "jsx" 10 | ], 11 | "plugins": ["transform-es2015-modules-commonjs"], 12 | "transform": { 13 | "^.+\\.jsx?$": "./node_modules/babel-jest" 14 | } 15 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/run.sh: -------------------------------------------------------------------------------- 1 | essw --port 8082 -path dist/ & 2 | 3 | webpack --watch --progress --colors --output-file dist/bundle.js 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/components/Misc/Icon.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | export default class Icon extends Component { 4 | render() { 5 | const { name } = this.props; 6 | return ( 7 | 8 | ); 9 | } 10 | } 11 | 12 | Icon.propTypes = { 13 | name: React.PropTypes.string.isRequired 14 | }; 15 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/components/Misc/Loader.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | export default class Loader extends Component { 4 | render() { 5 | const { show, classes } = this.props; 6 | 7 | if (!show) { 8 | return null; 9 | } 10 | 11 | const defaultClasses = [ 12 | 'loader', 13 | 'sk-spinning-loader' 14 | ]; 15 | 16 | if (classes) { 17 | classes.forEach(customClass => { 18 | defaultClasses.push(customClass); 19 | }); 20 | } 21 | 22 | return
; 23 | } 24 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/components/Misc/Websocket.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { connect } from 'react-redux'; 3 | 4 | import { Socket } from '../../utils/index' 5 | 6 | class Websocket extends Component { 7 | 8 | componentWillMount() { 9 | const { dispatch } = this.props; 10 | Socket.startWS(dispatch); 11 | } 12 | 13 | render() { 14 | return null; 15 | } 16 | } 17 | 18 | function select(state, ownProps) { 19 | return { 20 | ...ownProps 21 | }; 22 | } 23 | 24 | export default connect(select)(Websocket); 25 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/config.js: -------------------------------------------------------------------------------- 1 | export const i18n = { 2 | locales: ["en-US"], 3 | messages: {} 4 | }; 5 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/domain/index.js: -------------------------------------------------------------------------------- 1 | export { default as Fields } from './Fields' 2 | export { default as Workspaces } from './Workspaces' 3 | export { default as Migrations } from './Migrations' 4 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/exportJson.js: -------------------------------------------------------------------------------- 1 | import {saveAs} from 'file-saver'; 2 | 3 | export default function exportJson(data) { 4 | const blob = new Blob( 5 | [JSON.stringify(data)], 6 | {type: "text/json;charset=utf-8"} 7 | ); 8 | 9 | const now = new Date(); 10 | const dateString = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate(); 11 | const filename = 'marija-export-' + dateString + '.json'; 12 | 13 | saveAs(blob, filename); 14 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/fieldLocator.js: -------------------------------------------------------------------------------- 1 | export default function fieldLocator(document, field) { 2 | if (!field) {return false;} 3 | 4 | const field_levels = field.split('.'); 5 | 6 | const value = field_levels.reduce((currentLevelInDocument, currentField) => { 7 | if (!currentLevelInDocument) { 8 | return null; 9 | } 10 | 11 | if (typeof currentLevelInDocument[currentField] !== 'undefined') { 12 | return currentLevelInDocument[currentField]; 13 | } 14 | 15 | return null; 16 | }, document); 17 | 18 | return (value); 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/filterSecondaryComponents.js: -------------------------------------------------------------------------------- 1 | export default function filterSecondaryComponents(primaryQuery, components) { 2 | return components.filter(component => { 3 | const match = component.find(node => node.queries.indexOf(primaryQuery) !== -1); 4 | 5 | return typeof match !== 'undefined'; 6 | }); 7 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/generateColour.js: -------------------------------------------------------------------------------- 1 | import { hash, intToRGB} from './index'; 2 | 3 | export default function generateColour(str){ 4 | const hashedString = hash(str); 5 | return `#${intToRGB(hashedString)}`; 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/hash.js: -------------------------------------------------------------------------------- 1 | export default function hash(str) { 2 | var hash = 0; 3 | for (var i = 0; i < str.length; i++) { 4 | hash = str.charCodeAt(i) + ((hash << 5) - hash); 5 | } 6 | return hash; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/intToRgb.js: -------------------------------------------------------------------------------- 1 | export default function intToRGB(i) { 2 | var c = (i & 0x00FFFFFF) 3 | .toString(16) 4 | .toUpperCase(); 5 | 6 | return "ffffff".substring(0, 6 - c.length) + c; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/normalize.js: -------------------------------------------------------------------------------- 1 | import { reduce } from 'lodash'; 2 | 3 | // todo(nl5887): this cache isn't working for new searches when new normalizations are being added. 4 | let cache = { 5 | }; 6 | 7 | // get store 8 | export default function normalize(normalizations, v) { 9 | if (cache[v]) { 10 | return (cache[v]); 11 | } 12 | 13 | let p = v; 14 | if (typeof p === 'string') { 15 | p = reduce(normalizations, (currentValue, normalization) => { 16 | return currentValue.replace(normalization.re, normalization.replaceWith); 17 | }, p); 18 | } 19 | 20 | cache[v] = p; 21 | return p; 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/helpers/removeDeadLinks.js: -------------------------------------------------------------------------------- 1 | export default function removeDeadLinks(nodes, links) { 2 | return links.filter(link => { 3 | const source = nodes.find(node => node.id === link.source); 4 | const target = nodes.find(node => node.id === link.target); 5 | 6 | return typeof source !== 'undefined' && typeof target !== 'undefined'; 7 | }); 8 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/batch/actions.js: -------------------------------------------------------------------------------- 1 | export function batchActions(...actions) { 2 | console.debug("batchActions", actions); 3 | return { 4 | type: 'BATCH_ACTIONS', 5 | actions: actions 6 | }; 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/batch/index.js: -------------------------------------------------------------------------------- 1 | export { batchActions } from './actions'; 2 | 3 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/data/constants.js: -------------------------------------------------------------------------------- 1 | export const TABLE_COLUMN_ADD = 'TABLE_COLUMN_ADD'; 2 | export const TABLE_COLUMN_REMOVE = 'TABLE_COLUMN_REMOVE'; 3 | export const INDEX_ADD = "INDEX_ADD"; 4 | export const INDEX_DELETE = "INDEX_DELETE"; 5 | export const NORMALIZATION_ADD = "NORMALIZATION_ADD"; 6 | export const NORMALIZATION_DELETE = "NORMALIZATION_DELETE"; 7 | export const FIELD_ADD = "FIELD_ADD"; 8 | export const FIELD_DELETE = "FIELD_DELETE"; 9 | export const DATE_FIELD_ADD = "DATE_FIELD_ADD"; 10 | export const DATE_FIELD_DELETE = "DATE_FIELD_DELETE"; 11 | export const VIA_ADD = "VIA_ADD"; 12 | export const VIA_DELETE = "VIA_DELETE"; 13 | 14 | export const INITIAL_STATE_RECEIVE = "INITIAL_STATE_RECEIVE"; 15 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/data/index.js: -------------------------------------------------------------------------------- 1 | export { TABLE_COLUMN_REMOVE, TABLE_COLUMN_ADD, INDEX_ADD, INDEX_DELETE, FIELD_ADD, FIELD_DELETE, DATE_FIELD_ADD, DATE_FIELD_DELETE, NORMALIZATION_ADD, NORMALIZATION_DELETE, INITIAL_STATE_RECEIVE } from './constants'; 2 | export { tableColumnRemove, tableColumnAdd, indexAdd, fieldDelete, indexDelete, fieldAdd, dateFieldAdd, dateFieldDelete, normalizationAdd, normalizationDelete, nodeSelect, nodeSelects, receiveInitialState, viaAdd, viaDelete } from './actions'; 3 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/fields/actions.js: -------------------------------------------------------------------------------- 1 | import { FIELDS_RECEIVE, FIELDS_REQUEST, FIELDS_CLEAR } from './index'; 2 | 3 | 4 | export function clearAllFields(){ 5 | return { 6 | type: FIELDS_CLEAR, 7 | }; 8 | } 9 | 10 | 11 | export function receiveFields(fields) { 12 | return { 13 | type: FIELDS_RECEIVE, 14 | payload: { 15 | fields: fields 16 | } 17 | }; 18 | } 19 | 20 | export function getFields(indexes) { 21 | return { 22 | type: FIELDS_REQUEST, 23 | payload: { 24 | indexes: indexes 25 | } 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/fields/components/Field.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { Icon } from '../../../components/index'; 4 | import { FieldType } from '../index'; 5 | 6 | export default function Field(props) { 7 | const { item, handler, icon } = props; 8 | 9 | return ( 10 |
  • 11 | 12 | 13 | {item.path} 14 | 15 | handler() } 17 | name={icon}/> 18 |
  • 19 | ); 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/fields/constants.js: -------------------------------------------------------------------------------- 1 | export const FIELDS_REQUEST = 'FIELDS_REQUEST'; 2 | export const FIELDS_RECEIVE = 'FIELDS_RECEIVE'; 3 | export const FIELDS_CLEAR = 'FIELDS_CLEAR '; -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/fields/index.js: -------------------------------------------------------------------------------- 1 | export { FIELDS_RECEIVE, FIELDS_REQUEST, FIELDS_CLEAR } from './constants' 2 | export { getFields, receiveFields, clearAllFields} from './actions' 3 | 4 | export { default as Field } from './components/Field' 5 | export { default as FieldType } from './components/FieldType' -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/graph/constants.js: -------------------------------------------------------------------------------- 1 | export const NODE_SELECT = 'NODE_SELECT'; 2 | export const NODE_UPDATE = 'NODE_UPDATE'; 3 | export const NODES_SELECT = 'NODES_SELECT'; 4 | export const NODES_DESELECT = 'NODES_DESELECT'; 5 | export const NODES_HIGHLIGHT = 'NODES_HIGHLIGHT'; 6 | export const NODES_DELETE = 'NODES_DELETE'; 7 | export const SELECTION_CLEAR = 'SELECTION_CLEAR'; 8 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/graph/index.js: -------------------------------------------------------------------------------- 1 | export { NODE_SELECT, NODES_SELECT, NODE_UPDATE, NODES_DELETE, NODES_DESELECT, NODES_HIGHLIGHT, SELECTION_CLEAR } from './constants'; 2 | 3 | export { highlightNodes, nodeUpdate, nodesSelect, nodeSelect, deleteNodes, deselectNodes, clearSelection } from './actions'; 4 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/import/actions.js: -------------------------------------------------------------------------------- 1 | import {IMPORT_DATA, EXPORT_DATA} from "./index"; 2 | 3 | export function importData(data) { 4 | return { 5 | type: IMPORT_DATA, 6 | payload: data 7 | }; 8 | } 9 | 10 | export function exportData() { 11 | return { 12 | type: EXPORT_DATA 13 | }; 14 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/import/constants.js: -------------------------------------------------------------------------------- 1 | export const IMPORT_DATA = 'IMPORT_DATA'; 2 | export const EXPORT_DATA = 'EXPORT_DATA'; -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/import/index.js: -------------------------------------------------------------------------------- 1 | export { IMPORT_DATA, EXPORT_DATA } from './constants'; 2 | export { importData, exportData } from './actions'; -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/indices/constants.js: -------------------------------------------------------------------------------- 1 | export const INDICES_REQUEST = 'INDICES_REQUEST'; 2 | export const INDICES_RECEIVE = 'INDICES_RECEIVE'; 3 | export const INDEX_ACTIVATED = 'INDEX_ACTIVATED'; 4 | export const INDEX_DEACTIVATED = 'INDEX_DEACTIVATED'; -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/indices/index.js: -------------------------------------------------------------------------------- 1 | export { INDICES_REQUEST, INDICES_RECEIVE, INDEX_ACTIVATED, INDEX_DEACTIVATED } from './constants' 2 | export { receiveIndices, requestIndices, activateIndex, deActivateIndex } from './actions' -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/search/constants.js: -------------------------------------------------------------------------------- 1 | export const SEARCH_REQUEST = 'SEARCH_REQUEST'; 2 | export const SEARCH_RECEIVE = 'SEARCH_RECEIVE'; 3 | export const SEARCH_DELETE = 'SEARCH_DELETE'; 4 | export const SEARCH_EDIT = 'SEARCH_EDIT'; 5 | export const SEARCH_COMPLETED = 'SEARCH_COMPLETED'; -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/search/index.js: -------------------------------------------------------------------------------- 1 | export { default as SearchBox } from './components/SearchBox'; 2 | export { default as Searches } from './components/Searches'; 3 | 4 | export { SEARCH_RECEIVE, SEARCH_REQUEST, SEARCH_DELETE, SEARCH_EDIT, SEARCH_COMPLETED } from './constants'; 5 | 6 | export { searchReceive, searchRequest, deleteSearch, editSearch, searchCompleted } from './actions'; 7 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/servers/actions.js: -------------------------------------------------------------------------------- 1 | import { SERVER_ADD, SERVER_REMOVE } from './index' 2 | 3 | 4 | export function serverAdd(server) { 5 | return { 6 | type: SERVER_ADD, 7 | receivedAt: Date.now(), 8 | server: server 9 | }; 10 | } 11 | 12 | export function serverRemove(server) { 13 | return { 14 | type: SERVER_REMOVE, 15 | receivedAt: Date.now(), 16 | server: server 17 | }; 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/servers/constants.js: -------------------------------------------------------------------------------- 1 | export const SERVER_ADD = 'SERVER_ADD'; 2 | export const SERVER_REMOVE = 'SERVER_REMOVE'; -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/servers/index.js: -------------------------------------------------------------------------------- 1 | export { SERVER_ADD, SERVER_REMOVE} from './constants' 2 | export { serverAdd, serverRemove } from './actions' -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/status/ErrorStatus.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default class ErrorStatus extends React.Component { 4 | constructor(props) { 5 | super(props); 6 | } 7 | 8 | render() { 9 | const { error } = this.props; 10 | 11 | if (!error) { 12 | return null; 13 | } 14 | 15 | return
    { error }
    ; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/modules/status/index.js: -------------------------------------------------------------------------------- 1 | export { default as ErrorStatus } from './ErrorStatus'; 2 | export { default as ConnectionStatus} from './ConnectionStatus'; 3 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/reducers/batch.js: -------------------------------------------------------------------------------- 1 | const defaultState = { 2 | activeIndices: [] 3 | }; 4 | 5 | export default function enableBatching(reducer) { 6 | return function batchingReducer(state, action) { 7 | switch (action.type) { 8 | case 'BATCH_ACTIONS': 9 | return action.actions.reduce(batchingReducer, state); 10 | default: 11 | return reducer(state, action); 12 | } 13 | }; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/reducers/index.js: -------------------------------------------------------------------------------- 1 | export { default as entries, defaultState } from './entries'; 2 | export { default as utils } from './utils'; 3 | export { default as servers } from './servers'; 4 | export { default as indices } from './indices'; 5 | export { default as fields } from './fields'; 6 | export { default as enableBatching } from './batch'; 7 | export { default as root } from './root'; 8 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/reducers/servers.js: -------------------------------------------------------------------------------- 1 | import { concat, without } from 'lodash' 2 | 3 | import { SERVER_ADD, SERVER_REMOVE } from '../modules/servers/index' 4 | 5 | const defaultState = [ 6 | "http://127.0.0.1:9200/" 7 | ]; 8 | 9 | 10 | export default function servers(state = defaultState, action) { 11 | switch (action.type) { 12 | case SERVER_ADD: 13 | const newServers = concat(state, action.server); 14 | return newServers; 15 | 16 | case SERVER_REMOVE: 17 | const filteredServers = without(state, action.server); 18 | return filteredServers; 19 | 20 | default: 21 | return state; 22 | } 23 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/utils/constants.js: -------------------------------------------------------------------------------- 1 | export const AUTH_CONNECTED = 'AUTH_CONNECTED'; 2 | export const ERROR = 'ERROR'; 3 | export const CANCEL_REQUEST = 'CANCEL_REQUEST'; 4 | export const OPEN_PANE = 'OPEN_PANE'; 5 | export const CLOSE_PANE = 'CLOSE_PANE'; 6 | export const HEADER_HEIGHT_CHANGE = 'HEADER_HEIGHT_CHANGE'; 7 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/app/utils/index.js: -------------------------------------------------------------------------------- 1 | export{ AUTH_CONNECTED, ERROR, OPEN_PANE, CLOSE_PANE, CANCEL_REQUEST, HEADER_HEIGHT_CHANGE } from './constants'; 2 | export { error, authConnected, closePane, openPane, cancelRequest, headerHeightChange } from './actions'; 3 | 4 | export { default as FlowWS } from './infrastructure/FlowWS' 5 | export { SearchMessage, DiscoverFieldsMessage, DiscoverIndicesMessage } from './infrastructure/FlowWS' 6 | export { Socket } from './infrastructure/Socket' 7 | 8 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dutchcoders/marija/8f642f348fa16751eedbb0deef832776465bfb6c/vendor/github.com/dutchcoders/marija-web/src/images/favicon.png -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dutchcoders/marija/8f642f348fa16751eedbb0deef832776465bfb6c/vendor/github.com/dutchcoders/marija-web/src/images/logo.png -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/images/search-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dutchcoders/marija/8f642f348fa16751eedbb0deef832776465bfb6c/vendor/github.com/dutchcoders/marija-web/src/images/search-icon.png -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Marija - Data exploration and visualisation 5 | 6 | 7 | 8 | 9 | 10 | 11 |
    12 |
    13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/scss/nav.scss: -------------------------------------------------------------------------------- 1 | nav{ 2 | padding-top: 15px; 3 | padding-bottom: 15px; 4 | padding-right: 15px; 5 | 6 | &.navbar{ 7 | min-height: unset; 8 | margin-bottom: 0px; 9 | display: flex; 10 | } 11 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/scss/node.scss: -------------------------------------------------------------------------------- 1 | pane.nodes .description { 2 | font-style: italic; 3 | } 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/scss/rc-tooltip.scss: -------------------------------------------------------------------------------- 1 | .rc-tooltip { 2 | opacity: 1; 3 | 4 | .rc-tooltip-inner { 5 | padding: 8px 10px; 6 | color: #fff; 7 | text-align: left; 8 | text-decoration: none; 9 | background-color: $pane-header-background-color; 10 | border-radius: 4px; 11 | min-height: 0; 12 | box-shadow: 0 0 5px 0 rgba(0,0,0,0.76); 13 | height: auto; 14 | } 15 | } 16 | 17 | .rc-tooltip-placement-right .rc-tooltip-arrow, 18 | .rc-tooltip-placement-rightTop .rc-tooltip-arrow, 19 | .rc-tooltip-placement-rightBottom .rc-tooltip-arrow { 20 | border-right-color: $pane-header-background-color; 21 | } 22 | 23 | .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow, 24 | .rc-tooltip-placement-bottom .rc-tooltip-arrow{ 25 | border-bottom-color: $pane-header-background-color; 26 | } -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/src/scss/variables.scss: -------------------------------------------------------------------------------- 1 | $base-font-color: #FCFCFC; 2 | 3 | $body-background-color: #3A4C5E; 4 | $header-background-color: #4C657F; 5 | $pane-background-color: #455B73; 6 | $pane-header-background-color: #5CA1E6; 7 | 8 | $green: #57c17b; 9 | $red: #ea4552; 10 | 11 | $input-border-color: #fff; 12 | $input-border-color-focus: $base-font-color; 13 | $input-background-color: rgba(0,0,0,0.1); 14 | 15 | $input-color: $input-border-color; 16 | $input-color-focus: $input-border-color-focus; 17 | 18 | $spinner-color: $input-border-color-focus; 19 | $spinner-color-faded: rgba(181, 181, 181, 0.2); 20 | -------------------------------------------------------------------------------- /vendor/github.com/dutchcoders/marija-web/webpack-build.config.js: -------------------------------------------------------------------------------- 1 | const baseConfig = require('./webpack.config'); 2 | const path = require('path'); 3 | 4 | module.exports = Object.assign(baseConfig, { 5 | output: { 6 | path: [__dirname, 'dist'].join(path.sep), 7 | filename: 'bundle.js' 8 | }, 9 | }); -------------------------------------------------------------------------------- /vendor/github.com/elazarl/go-bindata-assetfs/doc.go: -------------------------------------------------------------------------------- 1 | // assetfs allows packages to serve static content embedded 2 | // with the go-bindata tool with the standard net/http package. 3 | // 4 | // See https://github.com/jteeuwen/go-bindata for more information 5 | // about embedding binary data with go-bindata. 6 | // 7 | // Usage example, after running 8 | // $ go-bindata data/... 9 | // use: 10 | // http.Handle("/", 11 | // http.FileServer( 12 | // &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, Prefix: "data"})) 13 | package assetfs 14 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6 4 | - tip 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/gernest/mention/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.3 4 | before_install: 5 | - go get -t -v 6 | - go get github.com/axw/gocov/gocov 7 | - go get github.com/mattn/goveralls 8 | - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 9 | script: 10 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken=$COVERALLS -------------------------------------------------------------------------------- /vendor/github.com/gernest/mention/examples_test.go: -------------------------------------------------------------------------------- 1 | package mention 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | func ExampleGetTags_mention() { 9 | msg := " hello @gernest" 10 | tags := GetTags('@', strings.NewReader(msg)) 11 | fmt.Println(tags) 12 | 13 | //Output: 14 | //[gernest] 15 | } 16 | 17 | func ExampleGetTags_hashtag() { 18 | msg := " viva la #tanzania" 19 | tags := GetTags('#', strings.NewReader(msg)) 20 | fmt.Println(tags) 21 | 22 | //Output: 23 | //[tanzania] 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-querystring/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | .idea/ 25 | *.iml -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | matrix: 5 | include: 6 | - go: 1.4 7 | - go: 1.5 8 | - go: 1.6 9 | - go: 1.7 10 | - go: 1.8 11 | - go: tip 12 | allow_failures: 13 | - go: tip 14 | 15 | script: 16 | - go get -t -v ./... 17 | - diff -u <(echo -n) <(gofmt -d .) 18 | - go vet $(go list ./... | grep -v /vendor/) 19 | - go test -v -race ./... 20 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Gorilla WebSocket authors for copyright 2 | # purposes. 3 | # 4 | # Please keep the list sorted. 5 | 6 | Gary Burd 7 | Joachim Bauch 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/client_clone.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.8 6 | 7 | package websocket 8 | 9 | import "crypto/tls" 10 | 11 | func cloneTLSConfig(cfg *tls.Config) *tls.Config { 12 | if cfg == nil { 13 | return &tls.Config{} 14 | } 15 | return cfg.Clone() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_read.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.5 6 | 7 | package websocket 8 | 9 | import "io" 10 | 11 | func (c *Conn) read(n int) ([]byte, error) { 12 | p, err := c.br.Peek(n) 13 | if err == io.EOF { 14 | err = errUnexpectedEOF 15 | } 16 | c.br.Discard(len(p)) 17 | return p, err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/conn_read_legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.5 6 | 7 | package websocket 8 | 9 | import "io" 10 | 11 | func (c *Conn) read(n int) ([]byte, error) { 12 | p, err := c.br.Peek(n) 13 | if err == io.EOF { 14 | err = errUnexpectedEOF 15 | } 16 | if len(p) > 0 { 17 | // advance over the bytes just read 18 | io.ReadFull(c.br, p) 19 | } 20 | return p, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/examples/autobahn/README.md: -------------------------------------------------------------------------------- 1 | # Test Server 2 | 3 | This package contains a server for the [Autobahn WebSockets Test Suite](http://autobahn.ws/testsuite). 4 | 5 | To test the server, run 6 | 7 | go run server.go 8 | 9 | and start the client test driver 10 | 11 | wstest -m fuzzingclient -s fuzzingclient.json 12 | 13 | When the client completes, it writes a report to reports/clients/index.html. 14 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/examples/autobahn/fuzzingclient.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "options": {"failByDrop": false}, 4 | "outdir": "./reports/clients", 5 | "servers": [ 6 | {"agent": "ReadAllWriteMessage", "url": "ws://localhost:9000/m", "options": {"version": 18}}, 7 | {"agent": "ReadAllWritePreparedMessage", "url": "ws://localhost:9000/p", "options": {"version": 18}}, 8 | {"agent": "ReadAllWrite", "url": "ws://localhost:9000/r", "options": {"version": 18}}, 9 | {"agent": "CopyFull", "url": "ws://localhost:9000/f", "options": {"version": 18}}, 10 | {"agent": "CopyWriterOnly", "url": "ws://localhost:9000/c", "options": {"version": 18}} 11 | ], 12 | "cases": ["*"], 13 | "exclude-cases": [], 14 | "exclude-agent-cases": {} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/examples/command/README.md: -------------------------------------------------------------------------------- 1 | # Command example 2 | 3 | This example connects a websocket connection to stdin and stdout of a command. 4 | Received messages are written to stdin followed by a `\n`. Each line read from 5 | standard out is sent as a message to the client. 6 | 7 | $ go get github.com/gorilla/websocket 8 | $ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/command` 9 | $ go run main.go 10 | # Open http://localhost:8080/ . 11 | 12 | Try the following commands. 13 | 14 | # Echo sent messages to the output area. 15 | $ go run main.go cat 16 | 17 | # Run a shell.Try sending "ls" and "cat main.go". 18 | $ go run main.go sh 19 | 20 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/examples/echo/README.md: -------------------------------------------------------------------------------- 1 | # Client and server example 2 | 3 | This example shows a simple client and server. 4 | 5 | The server echoes messages sent to it. The client sends a message every second 6 | and prints all messages received. 7 | 8 | To run the example, start the server: 9 | 10 | $ go run server.go 11 | 12 | Next, start the client: 13 | 14 | $ go run client.go 15 | 16 | The server includes a simple web client. To use the client, open 17 | http://127.0.0.1:8080 in the browser and follow the instructions on the page. 18 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/examples/filewatch/README.md: -------------------------------------------------------------------------------- 1 | # File Watch example. 2 | 3 | This example sends a file to the browser client for display whenever the file is modified. 4 | 5 | $ go get github.com/gorilla/websocket 6 | $ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/filewatch` 7 | $ go run main.go 8 | # Open http://localhost:8080/ . 9 | # Modify the file to see it update in the browser. 10 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/websocket/mask_safe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. Use of 2 | // this source code is governed by a BSD-style license that can be found in the 3 | // LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package websocket 8 | 9 | func maskBytes(key [4]byte, pos int, b []byte) int { 10 | for i := range b { 11 | b[i] ^= key[pos&3] 12 | pos++ 13 | } 14 | return pos & 3 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/kr/pretty/.gitignore: -------------------------------------------------------------------------------- 1 | [568].out 2 | _go* 3 | _test* 4 | _obj 5 | -------------------------------------------------------------------------------- /vendor/github.com/kr/pretty/Readme: -------------------------------------------------------------------------------- 1 | package pretty 2 | 3 | import "github.com/kr/pretty" 4 | 5 | Package pretty provides pretty-printing for Go values. 6 | 7 | Documentation 8 | 9 | http://godoc.org/github.com/kr/pretty 10 | -------------------------------------------------------------------------------- /vendor/github.com/kr/pretty/example_test.go: -------------------------------------------------------------------------------- 1 | package pretty_test 2 | 3 | import ( 4 | "fmt" 5 | "github.com/kr/pretty" 6 | ) 7 | 8 | func Example() { 9 | type myType struct { 10 | a, b int 11 | } 12 | var x = []myType{{1, 2}, {3, 4}, {5, 6}} 13 | fmt.Printf("%# v", pretty.Formatter(x)) 14 | // output: 15 | // []pretty_test.myType{ 16 | // {a:1, b:2}, 17 | // {a:3, b:4}, 18 | // {a:5, b:6}, 19 | // } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/kr/text/Readme: -------------------------------------------------------------------------------- 1 | This is a Go package for manipulating paragraphs of text. 2 | 3 | See http://go.pkgdoc.org/github.com/kr/text for full documentation. 4 | -------------------------------------------------------------------------------- /vendor/github.com/kr/text/colwriter/Readme: -------------------------------------------------------------------------------- 1 | Package colwriter provides a write filter that formats 2 | input lines in multiple columns. 3 | 4 | The package is a straightforward translation from 5 | /src/cmd/draw/mc.c in Plan 9 from User Space. 6 | -------------------------------------------------------------------------------- /vendor/github.com/kr/text/doc.go: -------------------------------------------------------------------------------- 1 | // Package text provides rudimentary functions for manipulating text in 2 | // paragraphs. 3 | package text 4 | -------------------------------------------------------------------------------- /vendor/github.com/kr/text/mc/Readme: -------------------------------------------------------------------------------- 1 | Command mc prints in multiple columns. 2 | 3 | Usage: mc [-] [-N] [file...] 4 | 5 | Mc splits the input into as many columns as will fit in N 6 | print positions. If the output is a tty, the default N is 7 | the number of characters in a terminal line; otherwise the 8 | default N is 80. Under option - each input line ending in 9 | a colon ':' is printed separately. 10 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/.gitignore: -------------------------------------------------------------------------------- 1 | .root 2 | *_easyjson.go 3 | *.iml 4 | .idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | install: 6 | - go get github.com/ugorji/go/codec 7 | - go get github.com/pquerna/ffjson/fflib/v1 8 | - go get github.com/json-iterator/go 9 | - go get github.com/golang/lint/golint 10 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/benchmark/dummy_test.go: -------------------------------------------------------------------------------- 1 | package benchmark 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | type DummyWriter struct{} 8 | 9 | func (w DummyWriter) Write(data []byte) (int, error) { return len(data), nil } 10 | 11 | func TestToSuppressNoTestsWarning(t *testing.T) {} 12 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/benchmark/ujson.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | 3 | echo -n "Python ujson module, DECODE: " 4 | python -m timeit -s "import ujson; data = open('`dirname $0`/example.json', 'r').read()" 'ujson.loads(data)' 5 | 6 | echo -n "Python ujson module, ENCODE: " 7 | python -m timeit -s "import ujson; data = open('`dirname $0`/example.json', 'r').read(); obj = ujson.loads(data)" 'ujson.dumps(obj)' 8 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/errors.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type ErrorIntSlice []int 5 | 6 | //easyjson:json 7 | type ErrorBoolSlice []bool 8 | 9 | //easyjson:json 10 | type ErrorUintSlice []uint 11 | 12 | //easyjson:json 13 | type ErrorStruct struct { 14 | Int int `json:"int"` 15 | String string `json:"string"` 16 | Slice []int `json:"slice"` 17 | IntSlice []int `json:"int_slice"` 18 | } 19 | 20 | type ErrorNestedStruct struct { 21 | ErrorStruct ErrorStruct `json:"error_struct"` 22 | Int int `json:"int"` 23 | } 24 | 25 | //easyjson:json 26 | type ErrorIntMap map[uint32]string 27 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/named_type.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type NamedType struct { 5 | Inner struct { 6 | // easyjson is mistakenly naming the type of this field 'tests.MyString' in the generated output 7 | // something about a named type inside an anonmymous type is triggering this bug 8 | Field MyString `tag:"value"` 9 | Field2 int "tag:\"value with ` in it\"" 10 | } 11 | } 12 | 13 | type MyString string 14 | 15 | var namedTypeValue NamedType 16 | 17 | func init() { 18 | namedTypeValue.Inner.Field = "test" 19 | namedTypeValue.Inner.Field2 = 123 20 | } 21 | 22 | var namedTypeValueString = `{"Inner":{"Field":"test","Field2":123}}` 23 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/nested_easy.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | import ( 4 | "github.com/mailru/easyjson" 5 | "github.com/mailru/easyjson/jwriter" 6 | ) 7 | 8 | //easyjson:json 9 | type NestedInterfaces struct { 10 | Value interface{} 11 | Slice []interface{} 12 | Map map[string]interface{} 13 | } 14 | 15 | type NestedEasyMarshaler struct { 16 | EasilyMarshaled bool 17 | } 18 | 19 | var _ easyjson.Marshaler = &NestedEasyMarshaler{} 20 | 21 | func (i *NestedEasyMarshaler) MarshalEasyJSON(w *jwriter.Writer) { 22 | // We use this method only to indicate that easyjson.Marshaler 23 | // interface was really used while encoding. 24 | i.EasilyMarshaled = true 25 | } -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/nothing.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | // No structs in this file 4 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/omitempty.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type OmitEmptyDefault struct { 5 | Field string 6 | Str string 7 | Str1 string `json:"s,!omitempty"` 8 | Str2 string `json:",!omitempty"` 9 | } 10 | 11 | var omitEmptyDefaultValue = OmitEmptyDefault{Field: "test"} 12 | var omitEmptyDefaultString = `{"Field":"test","s":"","Str2":""}` 13 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/tests/snake.go: -------------------------------------------------------------------------------- 1 | package tests 2 | 3 | //easyjson:json 4 | type SnakeStruct struct { 5 | WeirdHTTPStuff bool 6 | CustomNamedField string `json:"cUsToM"` 7 | } 8 | 9 | var snakeStructValue SnakeStruct 10 | var snakeStructString = `{"weird_http_stuff":false,"cUsToM":""}` 11 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | 5 | before_install: 6 | - go get github.com/mattn/goveralls 7 | - go get golang.org/x/tools/cmd/cover 8 | script: 9 | - $HOME/gopath/bin/goveralls -repotoken xnXqRGwgW3SXIguzxf90ZSK1GPYZPaGrw 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/_example/escape-seq/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bufio" 5 | "fmt" 6 | 7 | "github.com/mattn/go-colorable" 8 | ) 9 | 10 | func main() { 11 | stdOut := bufio.NewWriter(colorable.NewColorableStdout()) 12 | 13 | fmt.Fprint(stdOut, "\x1B[3GMove to 3rd Column\n") 14 | fmt.Fprint(stdOut, "\x1B[1;2HMove to 2nd Column on 1st Line\n") 15 | stdOut.Flush() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/_example/logrus/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/mattn/go-colorable" 5 | "github.com/sirupsen/logrus" 6 | ) 7 | 8 | func main() { 9 | logrus.SetFormatter(&logrus.TextFormatter{ForceColors: true}) 10 | logrus.SetOutput(colorable.NewColorableStdout()) 11 | 12 | logrus.Info("succeeded") 13 | logrus.Warn("not correct") 14 | logrus.Error("something error") 15 | logrus.Fatal("panic") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/_example/title/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | . "github.com/mattn/go-colorable" 7 | ) 8 | 9 | func main() { 10 | out := NewColorableStdout() 11 | fmt.Fprint(out, "\x1B]0;TITLE Changed\007(See title and hit any key)") 12 | var c [1]byte 13 | os.Stdin.Read(c[:]) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | _ "github.com/mattn/go-isatty" 10 | ) 11 | 12 | // NewColorable return new instance of Writer which handle escape sequence. 13 | func NewColorable(file *os.File) io.Writer { 14 | if file == nil { 15 | panic("nil passed instead of *os.File to NewColorable()") 16 | } 17 | 18 | return file 19 | } 20 | 21 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout. 22 | func NewColorableStdout() io.Writer { 23 | return os.Stdout 24 | } 25 | 26 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr. 27 | func NewColorableStderr() io.Writer { 28 | return os.Stderr 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package colorable 5 | 6 | import ( 7 | "io" 8 | "os" 9 | 10 | _ "github.com/mattn/go-isatty" 11 | ) 12 | 13 | // NewColorable return new instance of Writer which handle escape sequence. 14 | func NewColorable(file *os.File) io.Writer { 15 | if file == nil { 16 | panic("nil passed instead of *os.File to NewColorable()") 17 | } 18 | 19 | return file 20 | } 21 | 22 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout. 23 | func NewColorableStdout() io.Writer { 24 | return os.Stdout 25 | } 26 | 27 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr. 28 | func NewColorableStderr() io.Writer { 29 | return os.Stderr 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | 5 | before_install: 6 | - go get github.com/mattn/goveralls 7 | - go get golang.org/x/tools/cmd/cover 8 | script: 9 | - $HOME/gopath/bin/goveralls -repotoken 3gHdORO5k5ziZcWMBxnd9LrMZaJs8m9x5 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/example_test.go: -------------------------------------------------------------------------------- 1 | package isatty_test 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "github.com/mattn/go-isatty" 8 | ) 9 | 10 | func Example() { 11 | if isatty.IsTerminal(os.Stdout.Fd()) { 12 | fmt.Println("Is Terminal") 13 | } else if isatty.IsCygwinTerminal(os.Stdout.Fd()) { 14 | fmt.Println("Is Cygwin/MSYS2 Terminal") 15 | } else { 16 | fmt.Println("Is Not Terminal") 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine,!ppc64,!ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build ppc64 ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "unsafe" 8 | 9 | syscall "golang.org/x/sys/unix" 10 | ) 11 | 12 | const ioctlReadTermios = syscall.TCGETS 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var termios syscall.Termios 17 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 18 | return err == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 7 | // terminal. This is also always false on this environment. 8 | func IsCygwinTerminal(fd uintptr) bool { 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others_test.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package isatty 4 | 5 | import ( 6 | "os" 7 | "testing" 8 | ) 9 | 10 | func TestTerminal(t *testing.T) { 11 | // test for non-panic 12 | IsTerminal(os.Stdout.Fd()) 13 | } 14 | 15 | func TestCygwinPipeName(t *testing.T) { 16 | if IsCygwinTerminal(os.Stdout.Fd()) { 17 | t.Fatal("should be false always") 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/.gitignore: -------------------------------------------------------------------------------- 1 | *.coverprofile 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | cache: 6 | directories: 7 | - node_modules 8 | 9 | go: 10 | - 1.2.x 11 | - 1.3.x 12 | - 1.4.2 13 | - 1.5.x 14 | - 1.6.x 15 | - 1.7.x 16 | - master 17 | 18 | matrix: 19 | allow_failures: 20 | - go: master 21 | include: 22 | - go: 1.6.x 23 | os: osx 24 | - go: 1.7.x 25 | os: osx 26 | 27 | before_script: 28 | - go get github.com/urfave/gfmrun/... || true 29 | - go get golang.org/x/tools/... || true 30 | - if [ ! -f node_modules/.bin/markdown-toc ] ; then 31 | npm install markdown-toc ; 32 | fi 33 | 34 | script: 35 | - ./runtests gen 36 | - ./runtests vet 37 | - ./runtests test 38 | - ./runtests gfmrun 39 | - ./runtests toc 40 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/altsrc/altsrc.go: -------------------------------------------------------------------------------- 1 | package altsrc 2 | 3 | //go:generate python ../generate-flag-types altsrc -i ../flag-types.json -o flag_generated.go 4 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/altsrc/helpers_test.go: -------------------------------------------------------------------------------- 1 | package altsrc 2 | 3 | import ( 4 | "reflect" 5 | "testing" 6 | ) 7 | 8 | func expect(t *testing.T, a interface{}, b interface{}) { 9 | if !reflect.DeepEqual(b, a) { 10 | t.Errorf("Expected %#v (type %v) - Got %#v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a)) 11 | } 12 | } 13 | 14 | func refute(t *testing.T, a interface{}, b interface{}) { 15 | if a == b { 16 | t.Errorf("Did not expect %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a)) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/altsrc/input_source_context.go: -------------------------------------------------------------------------------- 1 | package altsrc 2 | 3 | import ( 4 | "time" 5 | 6 | "gopkg.in/urfave/cli.v1" 7 | ) 8 | 9 | // InputSourceContext is an interface used to allow 10 | // other input sources to be implemented as needed. 11 | type InputSourceContext interface { 12 | Int(name string) (int, error) 13 | Duration(name string) (time.Duration, error) 14 | Float64(name string) (float64, error) 15 | String(name string) (string, error) 16 | StringSlice(name string) ([]string, error) 17 | IntSlice(name string) ([]int, error) 18 | Generic(name string) (cli.Generic, error) 19 | Bool(name string) (bool, error) 20 | BoolT(name string) (bool, error) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | os: Windows Server 2012 R2 4 | 5 | clone_folder: c:\gopath\src\github.com\urfave\cli 6 | 7 | environment: 8 | GOPATH: C:\gopath 9 | GOVERSION: 1.6 10 | PYTHON: C:\Python27-x64 11 | PYTHON_VERSION: 2.7.x 12 | PYTHON_ARCH: 64 13 | 14 | install: 15 | - set PATH=%GOPATH%\bin;C:\go\bin;%PATH% 16 | - go version 17 | - go env 18 | - go get github.com/urfave/gfmrun/... 19 | - go get -v -t ./... 20 | 21 | build_script: 22 | - python runtests vet 23 | - python runtests test 24 | - python runtests gfmrun 25 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/autocomplete/bash_autocomplete: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | : ${PROG:=$(basename ${BASH_SOURCE})} 4 | 5 | _cli_bash_autocomplete() { 6 | local cur opts base 7 | COMPREPLY=() 8 | cur="${COMP_WORDS[COMP_CWORD]}" 9 | opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion ) 10 | COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) 11 | return 0 12 | } 13 | 14 | complete -F _cli_bash_autocomplete $PROG 15 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/autocomplete/zsh_autocomplete: -------------------------------------------------------------------------------- 1 | autoload -U compinit && compinit 2 | autoload -U bashcompinit && bashcompinit 3 | 4 | script_dir=$(dirname $0) 5 | source ${script_dir}/bash_autocomplete 6 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/cli.go: -------------------------------------------------------------------------------- 1 | // Package cli provides a minimal framework for creating and organizing command line 2 | // Go applications. cli is designed to be easy to understand and write, the most simple 3 | // cli application can be written as follows: 4 | // func main() { 5 | // cli.NewApp().Run(os.Args) 6 | // } 7 | // 8 | // Of course this application does not do much, so let's make this an actual application: 9 | // func main() { 10 | // app := cli.NewApp() 11 | // app.Name = "greet" 12 | // app.Usage = "say a greeting" 13 | // app.Action = func(c *cli.Context) error { 14 | // println("Greetings") 15 | // } 16 | // 17 | // app.Run(os.Args) 18 | // } 19 | package cli 20 | 21 | //go:generate python ./generate-flag-types cli -i flag-types.json -o flag_generated.go 22 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/helpers_test.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "os" 5 | "reflect" 6 | "runtime" 7 | "strings" 8 | "testing" 9 | ) 10 | 11 | var ( 12 | wd, _ = os.Getwd() 13 | ) 14 | 15 | func expect(t *testing.T, a interface{}, b interface{}) { 16 | _, fn, line, _ := runtime.Caller(1) 17 | fn = strings.Replace(fn, wd+"/", "", -1) 18 | 19 | if !reflect.DeepEqual(a, b) { 20 | t.Errorf("(%s:%d) Expected %v (type %v) - Got %v (type %v)", fn, line, b, reflect.TypeOf(b), a, reflect.TypeOf(a)) 21 | } 22 | } 23 | 24 | func refute(t *testing.T, a interface{}, b interface{}) { 25 | if reflect.DeepEqual(a, b) { 26 | t.Errorf("Did not expect %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a)) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/helpers_unix_test.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 2 | 3 | package cli 4 | 5 | import "os" 6 | 7 | func clearenv() { 8 | os.Clearenv() 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/minio/cli/helpers_windows_test.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "os" 5 | "syscall" 6 | ) 7 | 8 | // os.Clearenv() doesn't actually unset variables on Windows 9 | // See: https://github.com/golang/go/issues/17902 10 | func clearenv() { 11 | for _, s := range os.Environ() { 12 | for j := 1; j < len(s); j++ { 13 | if s[j] == '=' { 14 | keyp, _ := syscall.UTF16PtrFromString(s[0:j]) 15 | syscall.SetEnvironmentVariable(keyp, nil) 16 | break 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/op/go-logging/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.0 5 | - 1.1 6 | - tip 7 | -------------------------------------------------------------------------------- /vendor/github.com/op/go-logging/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Alec Thomas 2 | Guilhem Lettron 3 | Ivan Daniluk 4 | Nimi Wariboko Jr 5 | Róbert Selvek 6 | -------------------------------------------------------------------------------- /vendor/github.com/op/go-logging/examples/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dutchcoders/marija/8f642f348fa16751eedbb0deef832776465bfb6c/vendor/github.com/op/go-logging/examples/example.png -------------------------------------------------------------------------------- /vendor/github.com/patrickmn/go-cache/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | This is a list of people who have contributed code to go-cache. They, or their 2 | employers, are the copyright holders of the contributed code. Contributed code 3 | is subject to the license restrictions listed in LICENSE (as they were when the 4 | code was contributed.) 5 | 6 | Dustin Sallings 7 | Jason Mooberry 8 | Sergey Shepelev 9 | Alex Edwards 10 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.4.3 5 | - 1.5.4 6 | - 1.6.2 7 | - 1.7.1 8 | - tip 9 | 10 | script: 11 | - go test -v ./... 12 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: build-{build}.{branch} 2 | 3 | clone_folder: C:\gopath\src\github.com\pkg\errors 4 | shallow_clone: true # for startup speed 5 | 6 | environment: 7 | GOPATH: C:\gopath 8 | 9 | platform: 10 | - x64 11 | 12 | # http://www.appveyor.com/docs/installed-software 13 | install: 14 | # some helpful output for debugging builds 15 | - go version 16 | - go env 17 | # pre-installed MinGW at C:\MinGW is 32bit only 18 | # but MSYS2 at C:\msys64 has mingw64 19 | - set PATH=C:\msys64\mingw64\bin;%PATH% 20 | - gcc --version 21 | - g++ --version 22 | 23 | build_script: 24 | - go install -v ./... 25 | 26 | test_script: 27 | - set PATH=C:\gopath\bin;%PATH% 28 | - go test -v ./... 29 | 30 | #artifacts: 31 | # - path: '%GOPATH%\bin\*.exe' 32 | deploy: off 33 | -------------------------------------------------------------------------------- /vendor/github.com/qedus/blockchain/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/satori/go.uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - 1.7 10 | - 1.8 11 | - 1.9 12 | - tip 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | fast_finish: true 17 | before_install: 18 | - go get github.com/mattn/goveralls 19 | - go get golang.org/x/tools/cmd/cover 20 | script: 21 | - $HOME/gopath/bin/goveralls -service=travis-ci 22 | notifications: 23 | email: false 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/README.md: -------------------------------------------------------------------------------- 1 | # Go Networking 2 | 3 | This repository holds supplementary Go networking libraries. 4 | 5 | ## Download/Install 6 | 7 | The easiest way to install is to run `go get -u golang.org/x/net`. You can 8 | also manually git clone the repository to `$GOPATH/src/golang.org/x/net`. 9 | 10 | ## Report Issues / Send Patches 11 | 12 | This repository uses Gerrit for code changes. To learn how to submit 13 | changes to this repository, see https://golang.org/doc/contribute.html. 14 | The main issue tracker for the net repository is located at 15 | https://github.com/golang/go/issues. Prefix your issue with "x/net:" in the 16 | subject line, so it is easy to find. 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/setter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bpf 6 | 7 | // A Setter is a type which can attach a compiled BPF filter to itself. 8 | type Setter interface { 9 | SetBPF(filter []RawInstruction) error 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/testdata/all_instructions.bpf: -------------------------------------------------------------------------------- 1 | 50,0 0 0 42,1 0 0 42,96 0 0 3,97 0 0 3,48 0 0 42,40 0 0 42,32 0 0 42,80 0 0 42,72 0 0 42,64 0 0 42,177 0 0 42,128 0 0 0,32 0 0 4294963200,32 0 0 4294963204,32 0 0 4294963256,2 0 0 3,3 0 0 3,4 0 0 42,20 0 0 42,36 0 0 42,52 0 0 42,68 0 0 42,84 0 0 42,100 0 0 42,116 0 0 42,148 0 0 42,164 0 0 42,12 0 0 0,28 0 0 0,44 0 0 0,60 0 0 0,76 0 0 0,92 0 0 0,108 0 0 0,124 0 0 0,156 0 0 0,172 0 0 0,132 0 0 0,5 0 0 10,21 8 9 42,21 0 8 42,53 0 7 42,37 0 6 42,37 4 5 42,53 3 4 42,69 2 3 42,7 0 0 0,135 0 0 0,22 0 0 0,6 0 0 0, 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/ctxhttp/ctxhttp_17_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !plan9,go1.7 6 | 7 | package ctxhttp 8 | 9 | import ( 10 | "io" 11 | "net/http" 12 | "net/http/httptest" 13 | "testing" 14 | 15 | "context" 16 | ) 17 | 18 | func TestGo17Context(t *testing.T) { 19 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 20 | io.WriteString(w, "ok") 21 | })) 22 | defer ts.Close() 23 | ctx := context.Background() 24 | resp, err := Get(ctx, http.DefaultClient, ts.URL) 25 | if resp == nil || err != nil { 26 | t.Fatalf("error received from client: %v %v", err, resp) 27 | } 28 | resp.Body.Close() 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.9 6 | 7 | package context 8 | 9 | import "context" // standard library's context, as of Go 1.7 10 | 11 | // A Context carries a deadline, a cancelation signal, and other values across 12 | // API boundaries. 13 | // 14 | // Context's methods may be called by multiple goroutines simultaneously. 15 | type Context = context.Context 16 | 17 | // A CancelFunc tells an operation to abandon its work. 18 | // A CancelFunc does not wait for the work to stop. 19 | // After the first call, subsequent calls to a CancelFunc do nothing. 20 | type CancelFunc = context.CancelFunc 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/README: -------------------------------------------------------------------------------- 1 | These test cases come from 2 | http://www.w3.org/International/tests/repository/html5/the-input-byte-stream/results-basics 3 | 4 | Distributed under both the W3C Test Suite License 5 | (http://www.w3.org/Consortium/Legal/2008/04-testsuite-license) 6 | and the W3C 3-clause BSD License 7 | (http://www.w3.org/Consortium/Legal/2008/03-bsd-license). 8 | To contribute to a W3C Test Suite, see the policies and contribution 9 | forms (http://www.w3.org/2004/10/27-testcases). 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dutchcoders/marija/8f642f348fa16751eedbb0deef832776465bfb6c/vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dutchcoders/marija/8f642f348fa16751eedbb0deef832776465bfb6c/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/adoption02.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 12

    34 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | | "1" 10 | | 11 | | "2" 12 | | 13 | |

    14 | | 15 | | "3" 16 | | "4" 17 | 18 | #data 19 |

    20 | #errors 21 | #document 22 | | 23 | | 24 | | 25 | | 26 | |
    27 | | 28 | |