github.com/ava-labs/avalanchego@v1.11.11/codec/registry.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package codec
     5  
     6  import "errors"
     7  
     8  var ErrDuplicateType = errors.New("duplicate type registration")
     9  
    10  // Registry registers new types that can be marshaled into
    11  type Registry interface {
    12  	RegisterType(interface{}) error
    13  }