github.com/MetalBlockchain/metalgo@v1.11.9/snow/engine/avalanche/bootstrap/queue/parser.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package queue
     5  
     6  import "context"
     7  
     8  // Parser allows parsing a job from bytes.
     9  type Parser interface {
    10  	Parse(context.Context, []byte) (Job, error)
    11  }