163c116871
* 修改: etc/transfer.yml 修改: go.mod 修改: go.sum 修改: src/modules/transfer/backend/init.go 新文件: src/modules/transfer/backend/kafka.go 修改: src/modules/transfer/backend/sender.go 修改: src/modules/transfer/http/routes/push_router.go 修改: src/modules/transfer/rpc/push.go 新文件: vendor/github.com/Shopify/sarama/.gitignore 新文件: vendor/github.com/Shopify/sarama/.golangci.yml 新文件: vendor/github.com/Shopify/sarama/CHANGELOG.md 新文件: vendor/github.com/Shopify/sarama/LICENSE 新文件: vendor/github.com/Shopify/sarama/Makefile 新文件: vendor/github.com/Shopify/sarama/README.md 新文件: vendor/github.com/Shopify/sarama/Vagrantfile 新文件: vendor/github.com/Shopify/sarama/acl_bindings.go 新文件: vendor/github.com/Shopify/sarama/acl_create_request.go 新文件: vendor/github.com/Shopify/sarama/acl_create_response.go 新文件: vendor/github.com/Shopify/sarama/acl_delete_request.go 新文件: vendor/github.com/Shopify/sarama/acl_delete_response.go 新文件: vendor/github.com/Shopify/sarama/acl_describe_request.go 新文件: vendor/github.com/Shopify/sarama/acl_describe_response.go 新文件: vendor/github.com/Shopify/sarama/acl_filter.go 新文件: vendor/github.com/Shopify/sarama/acl_types.go 新文件: vendor/github.com/Shopify/sarama/add_offsets_to_txn_request.go 新文件: vendor/github.com/Shopify/sarama/add_offsets_to_txn_response.go 新文件: vendor/github.com/Shopify/sarama/add_partitions_to_txn_request.go 新文件: vendor/github.com/Shopify/sarama/add_partitions_to_txn_response.go 新文件: vendor/github.com/Shopify/sarama/admin.go 新文件: vendor/github.com/Shopify/sarama/alter_configs_request.go 新文件: vendor/github.com/Shopify/sarama/alter_configs_response.go 新文件: vendor/github.com/Shopify/sarama/alter_partition_reassignments_request.go 新文件: vendor/github.com/Shopify/sarama/alter_partition_reassignments_response.go 新文件: vendor/github.com/Shopify/sarama/api_versions_request.go 新文件: vendor/github.com/Shopify/sarama/api_versions_response.go 新文件: vendor/github.com/Shopify/sarama/async_producer.go 新文件: vendor/github.com/Shopify/sarama/balance_strategy.go 新文件: vendor/github.com/Shopify/sarama/broker.go 新文件: vendor/github.com/Shopify/sarama/client.go 新文件: vendor/github.com/Shopify/sarama/compress.go 新文件: vendor/github.com/Shopify/sarama/config.go 新文件: vendor/github.com/Shopify/sarama/config_resource_type.go 新文件: vendor/github.com/Shopify/sarama/consumer.go 新文件: vendor/github.com/Shopify/sarama/consumer_group.go 新文件: vendor/github.com/Shopify/sarama/consumer_group_members.go 新文件: vendor/github.com/Shopify/sarama/consumer_metadata_request.go 新文件: vendor/github.com/Shopify/sarama/consumer_metadata_response.go 新文件: vendor/github.com/Shopify/sarama/control_record.go 新文件: vendor/github.com/Shopify/sarama/crc32_field.go 新文件: vendor/github.com/Shopify/sarama/create_partitions_request.go 新文件: vendor/github.com/Shopify/sarama/create_partitions_response.go 新文件: vendor/github.com/Shopify/sarama/create_topics_request.go 新文件: vendor/github.com/Shopify/sarama/create_topics_response.go 新文件: vendor/github.com/Shopify/sarama/decompress.go 新文件: vendor/github.com/Shopify/sarama/delete_groups_request.go 新文件: vendor/github.com/Shopify/sarama/delete_groups_response.go 新文件: vendor/github.com/Shopify/sarama/delete_records_request.go 新文件: vendor/github.com/Shopify/sarama/delete_records_response.go 新文件: vendor/github.com/Shopify/sarama/delete_topics_request.go 新文件: vendor/github.com/Shopify/sarama/delete_topics_response.go 新文件: vendor/github.com/Shopify/sarama/describe_configs_request.go 新文件: vendor/github.com/Shopify/sarama/describe_configs_response.go 新文件: vendor/github.com/Shopify/sarama/describe_groups_request.go 新文件: vendor/github.com/Shopify/sarama/describe_groups_response.go 新文件: vendor/github.com/Shopify/sarama/describe_log_dirs_request.go 新文件: vendor/github.com/Shopify/sarama/describe_log_dirs_response.go 新文件: vendor/github.com/Shopify/sarama/dev.yml 新文件: vendor/github.com/Shopify/sarama/encoder_decoder.go 新文件: vendor/github.com/Shopify/sarama/end_txn_request.go 新文件: vendor/github.com/Shopify/sarama/end_txn_response.go 新文件: vendor/github.com/Shopify/sarama/errors.go 新文件: vendor/github.com/Shopify/sarama/fetch_request.go 新文件: vendor/github.com/Shopify/sarama/fetch_response.go 新文件: vendor/github.com/Shopify/sarama/find_coordinator_request.go 新文件: vendor/github.com/Shopify/sarama/find_coordinator_response.go 新文件: vendor/github.com/Shopify/sarama/go.mod 新文件: vendor/github.com/Shopify/sarama/go.sum 新文件: vendor/github.com/Shopify/sarama/gssapi_kerberos.go 新文件: vendor/github.com/Shopify/sarama/heartbeat_request.go 新文件: vendor/github.com/Shopify/sarama/heartbeat_response.go 新文件: vendor/github.com/Shopify/sarama/init_producer_id_request.go 新文件: vendor/github.com/Shopify/sarama/init_producer_id_response.go 新文件: vendor/github.com/Shopify/sarama/join_group_request.go 新文件: vendor/github.com/Shopify/sarama/join_group_response.go 新文件: vendor/github.com/Shopify/sarama/kerberos_client.go 新文件: vendor/github.com/Shopify/sarama/leave_group_request.go 新文件: vendor/github.com/Shopify/sarama/leave_group_response.go 新文件: vendor/github.com/Shopify/sarama/length_field.go 新文件: vendor/github.com/Shopify/sarama/list_groups_request.go 新文件: vendor/github.com/Shopify/sarama/list_groups_response.go 新文件: vendor/github.com/Shopify/sarama/list_partition_reassignments_request.go 新文件: vendor/github.com/Shopify/sarama/list_partition_reassignments_response.go 新文件: vendor/github.com/Shopify/sarama/message.go 新文件: vendor/github.com/Shopify/sarama/message_set.go 新文件: vendor/github.com/Shopify/sarama/metadata_request.go 新文件: vendor/github.com/Shopify/sarama/metadata_response.go 新文件: vendor/github.com/Shopify/sarama/metrics.go 新文件: vendor/github.com/Shopify/sarama/mockbroker.go 新文件: vendor/github.com/Shopify/sarama/mockkerberos.go 新文件: vendor/github.com/Shopify/sarama/mockresponses.go 新文件: vendor/github.com/Shopify/sarama/offset_commit_request.go 新文件: vendor/github.com/Shopify/sarama/offset_commit_response.go 新文件: vendor/github.com/Shopify/sarama/offset_fetch_request.go 新文件: vendor/github.com/Shopify/sarama/offset_fetch_response.go 新文件: vendor/github.com/Shopify/sarama/offset_manager.go 新文件: vendor/github.com/Shopify/sarama/offset_request.go 新文件: vendor/github.com/Shopify/sarama/offset_response.go 新文件: vendor/github.com/Shopify/sarama/packet_decoder.go 新文件: vendor/github.com/Shopify/sarama/packet_encoder.go 新文件: vendor/github.com/Shopify/sarama/partitioner.go 新文件: vendor/github.com/Shopify/sarama/prep_encoder.go 新文件: vendor/github.com/Shopify/sarama/produce_request.go 新文件: vendor/github.com/Shopify/sarama/produce_response.go 新文件: vendor/github.com/Shopify/sarama/produce_set.go 新文件: vendor/github.com/Shopify/sarama/real_decoder.go 新文件: vendor/github.com/Shopify/sarama/real_encoder.go 新文件: vendor/github.com/Shopify/sarama/record.go 新文件: vendor/github.com/Shopify/sarama/record_batch.go 新文件: vendor/github.com/Shopify/sarama/records.go 新文件: vendor/github.com/Shopify/sarama/request.go 新文件: vendor/github.com/Shopify/sarama/response_header.go 新文件: vendor/github.com/Shopify/sarama/sarama.go 新文件: vendor/github.com/Shopify/sarama/sasl_authenticate_request.go 新文件: vendor/github.com/Shopify/sarama/sasl_authenticate_response.go 新文件: vendor/github.com/Shopify/sarama/sasl_handshake_request.go 新文件: vendor/github.com/Shopify/sarama/sasl_handshake_response.go 新文件: vendor/github.com/Shopify/sarama/sticky_assignor_user_data.go 新文件: vendor/github.com/Shopify/sarama/sync_group_request.go 新文件: vendor/github.com/Shopify/sarama/sync_group_response.go 新文件: vendor/github.com/Shopify/sarama/sync_producer.go 新文件: vendor/github.com/Shopify/sarama/timestamp.go 新文件: vendor/github.com/Shopify/sarama/txn_offset_commit_request.go 新文件: vendor/github.com/Shopify/sarama/txn_offset_commit_response.go 新文件: vendor/github.com/Shopify/sarama/utils.go 新文件: vendor/github.com/Shopify/sarama/zstd.go 新文件: vendor/github.com/eapache/go-resiliency/LICENSE 新文件: vendor/github.com/eapache/go-resiliency/breaker/README.md 新文件: vendor/github.com/eapache/go-resiliency/breaker/breaker.go 新文件: vendor/github.com/eapache/go-xerial-snappy/.gitignore 新文件: vendor/github.com/eapache/go-xerial-snappy/.travis.yml 新文件: vendor/github.com/eapache/go-xerial-snappy/LICENSE 新文件: vendor/github.com/eapache/go-xerial-snappy/README.md 新文件: vendor/github.com/eapache/go-xerial-snappy/fuzz.go 新文件: vendor/github.com/eapache/go-xerial-snappy/snappy.go 新文件: vendor/github.com/eapache/queue/.gitignore 新文件: vendor/github.com/eapache/queue/.travis.yml 新文件: vendor/github.com/eapache/queue/LICENSE 新文件: vendor/github.com/eapache/queue/README.md 新文件: vendor/github.com/eapache/queue/queue.go 新文件: vendor/github.com/golang/snappy/.gitignore 新文件: vendor/github.com/golang/snappy/AUTHORS 新文件: vendor/github.com/golang/snappy/CONTRIBUTORS 新文件: vendor/github.com/golang/snappy/LICENSE 新文件: vendor/github.com/golang/snappy/README 新文件: vendor/github.com/golang/snappy/decode.go 新文件: vendor/github.com/golang/snappy/decode_amd64.go 新文件: vendor/github.com/golang/snappy/decode_amd64.s 新文件: vendor/github.com/golang/snappy/decode_other.go 新文件: vendor/github.com/golang/snappy/encode.go 新文件: vendor/github.com/golang/snappy/encode_amd64.go 新文件: vendor/github.com/golang/snappy/encode_amd64.s 新文件: vendor/github.com/golang/snappy/encode_other.go 新文件: vendor/github.com/golang/snappy/go.mod 新文件: vendor/github.com/golang/snappy/snappy.go 新文件: vendor/github.com/hashicorp/go-uuid/.travis.yml 新文件: vendor/github.com/hashicorp/go-uuid/LICENSE 新文件: vendor/github.com/hashicorp/go-uuid/README.md 新文件: vendor/github.com/hashicorp/go-uuid/go.mod 新文件: vendor/github.com/hashicorp/go-uuid/uuid.go 新文件: vendor/github.com/jcmturner/gofork/LICENSE 新文件: vendor/github.com/jcmturner/gofork/encoding/asn1/README.md 新文件: vendor/github.com/jcmturner/gofork/encoding/asn1/asn1.go 新文件: vendor/github.com/jcmturner/gofork/encoding/asn1/common.go 新文件: vendor/github.com/jcmturner/gofork/encoding/asn1/marshal.go 新文件: vendor/github.com/jcmturner/gofork/x/crypto/pbkdf2/pbkdf2.go 新文件: vendor/github.com/klauspost/compress/LICENSE 新文件: vendor/github.com/klauspost/compress/fse/README.md 新文件: vendor/github.com/klauspost/compress/fse/bitreader.go 新文件: vendor/github.com/klauspost/compress/fse/bitwriter.go 新文件: vendor/github.com/klauspost/compress/fse/bytereader.go 新文件: vendor/github.com/klauspost/compress/fse/compress.go 新文件: vendor/github.com/klauspost/compress/fse/decompress.go 新文件: vendor/github.com/klauspost/compress/fse/fse.go 新文件: vendor/github.com/klauspost/compress/huff0/.gitignore 新文件: vendor/github.com/klauspost/compress/huff0/README.md 新文件: vendor/github.com/klauspost/compress/huff0/bitreader.go 新文件: vendor/github.com/klauspost/compress/huff0/bitwriter.go 新文件: vendor/github.com/klauspost/compress/huff0/bytereader.go 新文件: vendor/github.com/klauspost/compress/huff0/compress.go 新文件: vendor/github.com/klauspost/compress/huff0/decompress.go 新文件: vendor/github.com/klauspost/compress/huff0/huff0.go 新文件: vendor/github.com/klauspost/compress/snappy/.gitignore 新文件: vendor/github.com/klauspost/compress/snappy/AUTHORS 新文件: vendor/github.com/klauspost/compress/snappy/CONTRIBUTORS 新文件: vendor/github.com/klauspost/compress/snappy/LICENSE 新文件: vendor/github.com/klauspost/compress/snappy/README 新文件: vendor/github.com/klauspost/compress/snappy/decode.go 新文件: vendor/github.com/klauspost/compress/snappy/decode_amd64.go 新文件: vendor/github.com/klauspost/compress/snappy/decode_amd64.s 新文件: vendor/github.com/klauspost/compress/snappy/decode_other.go 新文件: vendor/github.com/klauspost/compress/snappy/encode.go 新文件: vendor/github.com/klauspost/compress/snappy/encode_amd64.go 新文件: vendor/github.com/klauspost/compress/snappy/encode_amd64.s 新文件: vendor/github.com/klauspost/compress/snappy/encode_other.go 新文件: vendor/github.com/klauspost/compress/snappy/runbench.cmd 新文件: vendor/github.com/klauspost/compress/snappy/snappy.go 新文件: vendor/github.com/klauspost/compress/zstd/README.md 新文件: vendor/github.com/klauspost/compress/zstd/bitreader.go 新文件: vendor/github.com/klauspost/compress/zstd/bitwriter.go 新文件: vendor/github.com/klauspost/compress/zstd/blockdec.go 新文件: vendor/github.com/klauspost/compress/zstd/blockenc.go 新文件: vendor/github.com/klauspost/compress/zstd/blocktype_string.go 新文件: vendor/github.com/klauspost/compress/zstd/bytebuf.go 新文件: vendor/github.com/klauspost/compress/zstd/bytereader.go 新文件: vendor/github.com/klauspost/compress/zstd/decoder.go 新文件: vendor/github.com/klauspost/compress/zstd/decoder_options.go 新文件: vendor/github.com/klauspost/compress/zstd/enc_dfast.go 新文件: vendor/github.com/klauspost/compress/zstd/enc_fast.go 新文件: vendor/github.com/klauspost/compress/zstd/enc_params.go 新文件: vendor/github.com/klauspost/compress/zstd/encoder.go 新文件: vendor/github.com/klauspost/compress/zstd/encoder_options.go 新文件: vendor/github.com/klauspost/compress/zstd/framedec.go 新文件: vendor/github.com/klauspost/compress/zstd/frameenc.go 新文件: vendor/github.com/klauspost/compress/zstd/fse_decoder.go 新文件: vendor/github.com/klauspost/compress/zstd/fse_encoder.go 新文件: vendor/github.com/klauspost/compress/zstd/fse_predefined.go 新文件: vendor/github.com/klauspost/compress/zstd/hash.go 新文件: vendor/github.com/klauspost/compress/zstd/history.go 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/LICENSE.txt 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/README.md 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash.go 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.go 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.s 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_other.go 新文件: vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go 新文件: vendor/github.com/klauspost/compress/zstd/seqdec.go 新文件: vendor/github.com/klauspost/compress/zstd/seqenc.go 新文件: vendor/github.com/klauspost/compress/zstd/snappy.go 新文件: vendor/github.com/klauspost/compress/zstd/zstd.go 新文件: vendor/github.com/pierrec/lz4/.gitignore 新文件: vendor/github.com/pierrec/lz4/.travis.yml 新文件: vendor/github.com/pierrec/lz4/LICENSE 新文件: vendor/github.com/pierrec/lz4/README.md 新文件: vendor/github.com/pierrec/lz4/block.go 新文件: vendor/github.com/pierrec/lz4/debug.go 新文件: vendor/github.com/pierrec/lz4/debug_stub.go 新文件: vendor/github.com/pierrec/lz4/decode_amd64.go 新文件: vendor/github.com/pierrec/lz4/decode_amd64.s 新文件: vendor/github.com/pierrec/lz4/decode_other.go 新文件: vendor/github.com/pierrec/lz4/errors.go 新文件: vendor/github.com/pierrec/lz4/internal/xxh32/xxh32zero.go 新文件: vendor/github.com/pierrec/lz4/lz4.go 新文件: vendor/github.com/pierrec/lz4/lz4_go1.10.go 新文件: vendor/github.com/pierrec/lz4/lz4_notgo1.10.go 新文件: vendor/github.com/pierrec/lz4/reader.go 新文件: vendor/github.com/pierrec/lz4/writer.go 新文件: vendor/github.com/rcrowley/go-metrics/.gitignore 新文件: vendor/github.com/rcrowley/go-metrics/.travis.yml 新文件: vendor/github.com/rcrowley/go-metrics/LICENSE 新文件: vendor/github.com/rcrowley/go-metrics/README.md 新文件: vendor/github.com/rcrowley/go-metrics/counter.go 新文件: vendor/github.com/rcrowley/go-metrics/debug.go 新文件: vendor/github.com/rcrowley/go-metrics/ewma.go 新文件: vendor/github.com/rcrowley/go-metrics/gauge.go 新文件: vendor/github.com/rcrowley/go-metrics/gauge_float64.go 新文件: vendor/github.com/rcrowley/go-metrics/graphite.go 新文件: vendor/github.com/rcrowley/go-metrics/healthcheck.go 新文件: vendor/github.com/rcrowley/go-metrics/histogram.go 新文件: vendor/github.com/rcrowley/go-metrics/json.go 新文件: vendor/github.com/rcrowley/go-metrics/log.go 新文件: vendor/github.com/rcrowley/go-metrics/memory.md 新文件: vendor/github.com/rcrowley/go-metrics/meter.go 新文件: vendor/github.com/rcrowley/go-metrics/metrics.go 新文件: vendor/github.com/rcrowley/go-metrics/opentsdb.go 新文件: vendor/github.com/rcrowley/go-metrics/registry.go 新文件: vendor/github.com/rcrowley/go-metrics/runtime.go 新文件: vendor/github.com/rcrowley/go-metrics/runtime_cgo.go 新文件: vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go 新文件: vendor/github.com/rcrowley/go-metrics/runtime_no_cgo.go 新文件: vendor/github.com/rcrowley/go-metrics/runtime_no_gccpufraction.go 新文件: vendor/github.com/rcrowley/go-metrics/sample.go 新文件: vendor/github.com/rcrowley/go-metrics/syslog.go 新文件: vendor/github.com/rcrowley/go-metrics/timer.go 新文件: vendor/github.com/rcrowley/go-metrics/validate.sh 新文件: vendor/github.com/rcrowley/go-metrics/writer.go 删除: vendor/github.com/shirou/gopsutil/mem/types_openbsd.go 删除: vendor/github.com/shirou/gopsutil/process/types_darwin.go 删除: vendor/github.com/shirou/gopsutil/process/types_freebsd.go 删除: vendor/github.com/shirou/gopsutil/process/types_openbsd.go 删除: vendor/github.com/ugorji/go/codec/xml.go 新文件: vendor/golang.org/x/crypto/AUTHORS 新文件: vendor/golang.org/x/crypto/CONTRIBUTORS 新文件: vendor/golang.org/x/crypto/LICENSE 新文件: vendor/golang.org/x/crypto/PATENTS 新文件: vendor/golang.org/x/crypto/md4/md4.go 新文件: vendor/golang.org/x/crypto/md4/md4block.go 新文件: vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go 新文件: vendor/golang.org/x/net/AUTHORS 新文件: vendor/golang.org/x/net/CONTRIBUTORS 新文件: vendor/golang.org/x/net/LICENSE 新文件: vendor/golang.org/x/net/PATENTS 新文件: vendor/golang.org/x/net/internal/socks/client.go 新文件: vendor/golang.org/x/net/internal/socks/socks.go 新文件: vendor/golang.org/x/net/proxy/dial.go 新文件: vendor/golang.org/x/net/proxy/direct.go 新文件: vendor/golang.org/x/net/proxy/per_host.go 新文件: vendor/golang.org/x/net/proxy/proxy.go 新文件: vendor/golang.org/x/net/proxy/socks5.go 删除: vendor/golang.org/x/sys/unix/mkasm_darwin.go 删除: vendor/golang.org/x/sys/unix/mkpost.go 删除: vendor/golang.org/x/sys/unix/mksyscall.go 删除: vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go 删除: vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go 删除: vendor/golang.org/x/sys/unix/mksyscall_solaris.go 删除: vendor/golang.org/x/sys/unix/mksysctl_openbsd.go 删除: vendor/golang.org/x/sys/unix/mksysnum.go 删除: vendor/golang.org/x/sys/unix/types_aix.go 删除: vendor/golang.org/x/sys/unix/types_darwin.go 删除: vendor/golang.org/x/sys/unix/types_dragonfly.go 删除: vendor/golang.org/x/sys/unix/types_freebsd.go 删除: vendor/golang.org/x/sys/unix/types_netbsd.go 删除: vendor/golang.org/x/sys/unix/types_openbsd.go 删除: vendor/golang.org/x/sys/unix/types_solaris.go 删除: vendor/golang.org/x/text/unicode/norm/maketables.go 删除: vendor/golang.org/x/text/unicode/norm/triegen.go 删除: vendor/golang.org/x/tools/go/gcexportdata/main.go 新文件: vendor/gopkg.in/jcmturner/aescts.v1/.gitignore 新文件: vendor/gopkg.in/jcmturner/aescts.v1/LICENSE 新文件: vendor/gopkg.in/jcmturner/aescts.v1/README.md 新文件: vendor/gopkg.in/jcmturner/aescts.v1/aescts.go 新文件: vendor/gopkg.in/jcmturner/dnsutils.v1/.gitignore 新文件: vendor/gopkg.in/jcmturner/dnsutils.v1/.travis.yml 新文件: vendor/gopkg.in/jcmturner/dnsutils.v1/LICENSE 新文件: vendor/gopkg.in/jcmturner/dnsutils.v1/srv.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/LICENSE 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/asn1tools/tools.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/ASExchange.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/TGSExchange.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/cache.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/client.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/network.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/passwd.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/session.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/client/settings.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/config/error.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/config/hosts.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/config/krb5conf.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/credentials/ccache.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/credentials/credentials.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/aes128-cts-hmac-sha1-96.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/aes128-cts-hmac-sha256-128.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/aes256-cts-hmac-sha1-96.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/aes256-cts-hmac-sha384-192.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/common/common.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/crypto.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/des3-cbc-sha1-kd.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/etype/etype.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rc4-hmac.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc3961/encryption.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc3961/keyDerivation.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc3961/nfold.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc3962/encryption.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc3962/keyDerivation.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc4757/checksum.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc4757/encryption.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc4757/keyDerivation.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc4757/msgtype.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc8009/encryption.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/crypto/rfc8009/keyDerivation.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/gssapi/MICToken.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/gssapi/README.md 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/gssapi/contextFlags.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/gssapi/gssapi.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/gssapi/wrapToken.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/addrtype/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/adtype/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/asnAppTag/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/chksumtype/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/errorcode/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/etypeID/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/flags/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/keyusage/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/msgtype/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/nametype/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/iana/patype/constants.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/kadmin/changepasswddata.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/kadmin/message.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/kadmin/passwd.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/keytab/keytab.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/krberror/error.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/APRep.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/APReq.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/KDCRep.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/KDCReq.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/KRBCred.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/KRBError.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/KRBPriv.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/KRBSafe.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/messages/Ticket.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/client_claims.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/client_info.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/credentials_info.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/device_claims.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/device_info.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/kerb_validation_info.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/pac_type.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/s4u_delegation_info.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/signature_data.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/supplemental_cred.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/pac/upn_dns_info.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/Authenticator.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/AuthorizationData.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/Cryptosystem.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/HostAddress.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/KerberosFlags.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/PAData.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/PrincipalName.go 新文件: vendor/gopkg.in/jcmturner/gokrb5.v7/types/TypedData.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/LICENSE 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/claims.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/common.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/filetime.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/group_membership.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/kerb_sid_and_attributes.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/reader.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/rpc_unicode_string.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/sid.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/mstypes/user_session_key.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/arrays.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/decoder.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/error.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/header.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/pipe.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/primitives.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/rawbytes.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/strings.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/tags.go 新文件: vendor/gopkg.in/jcmturner/rpc.v1/ndr/union.go 修改: vendor/gopkg.in/yaml.v2/.travis.yml 修改: vendor/gopkg.in/yaml.v2/decode.go 修改: vendor/gopkg.in/yaml.v2/scannerc.go 修改: vendor/gopkg.in/yaml.v2/yaml.go 修改: vendor/gopkg.in/yaml.v2/yamlh.go 修改: vendor/modules.txt * Update sender.go * Update sender.go * Update kafka.go * Update kafka.go Co-authored-by: 马涛 <matao@staff.sina.com.cn> |
||
---|---|---|
.. | ||
.travis.yml | ||
LICENSE | ||
LICENSE.libyaml | ||
NOTICE | ||
README.md | ||
apic.go | ||
decode.go | ||
emitterc.go | ||
encode.go | ||
go.mod | ||
parserc.go | ||
readerc.go | ||
resolve.go | ||
scannerc.go | ||
sorter.go | ||
writerc.go | ||
yaml.go | ||
yamlh.go | ||
yamlprivateh.go |
README.md
YAML support for the Go language
Introduction
The yaml package enables Go programs to comfortably encode and decode YAML values. It was developed within Canonical as part of the juju project, and is based on a pure Go port of the well-known libyaml C library to parse and generate YAML data quickly and reliably.
Compatibility
The yaml package supports most of YAML 1.1 and 1.2, including support for anchors, tags, map merging, etc. Multi-document unmarshalling is not yet implemented, and base-60 floats from YAML 1.1 are purposefully not supported since they're a poor design and are gone in YAML 1.2.
Installation and usage
The import path for the package is gopkg.in/yaml.v2.
To install it, run:
go get gopkg.in/yaml.v2
API documentation
If opened in a browser, the import path itself leads to the API documentation:
API stability
The package API for yaml v2 will remain stable as described in gopkg.in.
License
The yaml package is licensed under the Apache License 2.0. Please see the LICENSE file for details.
Example
package main
import (
"fmt"
"log"
"gopkg.in/yaml.v2"
)
var data = `
a: Easy!
b:
c: 2
d: [3, 4]
`
// Note: struct fields must be public in order for unmarshal to
// correctly populate the data.
type T struct {
A string
B struct {
RenamedC int `yaml:"c"`
D []int `yaml:",flow"`
}
}
func main() {
t := T{}
err := yaml.Unmarshal([]byte(data), &t)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- t:\n%v\n\n", t)
d, err := yaml.Marshal(&t)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- t dump:\n%s\n\n", string(d))
m := make(map[interface{}]interface{})
err = yaml.Unmarshal([]byte(data), &m)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- m:\n%v\n\n", m)
d, err = yaml.Marshal(&m)
if err != nil {
log.Fatalf("error: %v", err)
}
fmt.Printf("--- m dump:\n%s\n\n", string(d))
}
This example will generate the following output:
--- t:
{Easy! {2 [3 4]}}
--- t dump:
a: Easy!
b:
c: 2
d: [3, 4]
--- m:
map[a:Easy! b:map[c:2 d:[3 4]]]
--- m dump:
a: Easy!
b:
c: 2
d:
- 3
- 4