{"modulePath":"github.com/chainopen/matrixchaincode","version":"v0.0.0-20190924071332-ddf2b42e220f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lessdisk\n\nCopyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n\nCopyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n\nCopyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n\n## Variables\n\n```go\nvar (\n\tErrDataSize = errors.New(\"data size err\")\n)\n```\n\n## Types\n\n```go\ntype ChainOperator interface {\n\tCurrentHeader() *types.Header\n\tDelLocalBlocks(blocks []*mc.BlockInfo) (fails []*mc.BlockInfo, err error)\n}\n```\n\n```go\ntype DatabaseOperator interface {\n\tHas(key []byte) (bool, error)\n\tGet(key []byte) ([]byte, error)\n\tPut(key []byte, value []byte) error\n\tDelete(key []byte) error\n}\n```\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewLessDiskSvr(config *params.LessDiskConfig, db DatabaseOperator, chain ChainOperator) *Server\n```\n\n```go\nfunc (self *Server) FuncSwitch(enable bool)\n```\n\n```go\nfunc (self *Server) Stop()\n```\n\n","path":"github.com/chainopen/matrixchaincode/lessdisk","name":"lessdisk","synopsis":"","isRedistributable":true}
