github.com/Axway/agent-sdk@v1.1.101/pkg/apic/specprotobufprocessor.go (about)

     1  package apic
     2  
     3  import (
     4  	"github.com/emicklei/proto"
     5  )
     6  
     7  type protobufProcessor struct {
     8  	protobufDef *proto.Proto
     9  	spec        []byte
    10  }
    11  
    12  func newProtobufProcessor(protobufDef *proto.Proto, spec []byte) *protobufProcessor {
    13  	return &protobufProcessor{protobufDef: protobufDef, spec: spec}
    14  }
    15  
    16  func (p *protobufProcessor) GetResourceType() string {
    17  	return Protobuf
    18  }
    19  
    20  // GetVersion -
    21  func (p *protobufProcessor) GetVersion() string {
    22  	return ""
    23  }
    24  
    25  // GetDescription -
    26  func (p *protobufProcessor) GetDescription() string {
    27  	return ""
    28  }
    29  
    30  // GetEndpoints -
    31  func (p *protobufProcessor) GetEndpoints() ([]EndpointDefinition, error) {
    32  	return []EndpointDefinition{}, nil
    33  }
    34  
    35  // GetSpecBytes -
    36  func (p *protobufProcessor) GetSpecBytes() []byte {
    37  	return p.spec
    38  }