本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
596B

  1. // Copyright (C) MongoDB, Inc. 2017-present.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. // not use this file except in compliance with the License. You may obtain
  5. // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  6. package bsoncodec
  7. // Proxy is an interface implemented by types that cannot themselves be directly encoded. Types
  8. // that implement this interface with have ProxyBSON called during the encoding process and that
  9. // value will be encoded in place for the implementer.
  10. type Proxy interface {
  11. ProxyBSON() (interface{}, error)
  12. }
上海开阖软件有限公司 沪ICP备12045867号-1