datatype

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchSplitter

type BatchSplitter interface {
	Split(raw []byte) ([][]byte, error)
}

func NewBatchSplitter

func NewBatchSplitter(splitOn string) (BatchSplitter, error)

type BinaryParser

type BinaryParser struct{}

func (*BinaryParser) ContentType

func (b *BinaryParser) ContentType() string

func (*BinaryParser) Parse

func (b *BinaryParser) Parse(raw []byte) (any, error)

func (*BinaryParser) Serialize

func (b *BinaryParser) Serialize(data any) ([]byte, error)

type CSVParser

type CSVParser struct{}

func (*CSVParser) ContentType

func (c *CSVParser) ContentType() string

func (*CSVParser) Parse

func (c *CSVParser) Parse(raw []byte) (any, error)

func (*CSVParser) Serialize

func (c *CSVParser) Serialize(data any) ([]byte, error)

type FHIRBundleSplitter

type FHIRBundleSplitter struct{}

func (*FHIRBundleSplitter) Split

func (f *FHIRBundleSplitter) Split(raw []byte) ([][]byte, error)

type HL7BatchSplitter

type HL7BatchSplitter struct{}

func (*HL7BatchSplitter) Split

func (h *HL7BatchSplitter) Split(raw []byte) ([][]byte, error)

type HL7Field

type HL7Field struct {
	Value      string   `json:"value"`
	Components []string `json:"components,omitempty"`
}

type HL7v2Message

type HL7v2Message struct {
	Segments []HL7v2Segment `json:"segments"`
	Raw      string         `json:"raw"`
}

type HL7v2Parser

type HL7v2Parser struct{}

func (*HL7v2Parser) ContentType

func (h *HL7v2Parser) ContentType() string

func (*HL7v2Parser) Parse

func (h *HL7v2Parser) Parse(raw []byte) (any, error)

func (*HL7v2Parser) Serialize

func (h *HL7v2Parser) Serialize(data any) ([]byte, error)

type HL7v2Segment

type HL7v2Segment struct {
	Name   string     `json:"name"`
	Fields []HL7Field `json:"fields"`
}

type JSONParser

type JSONParser struct{}

func (*JSONParser) ContentType

func (j *JSONParser) ContentType() string

func (*JSONParser) Parse

func (j *JSONParser) Parse(raw []byte) (any, error)

func (*JSONParser) Serialize

func (j *JSONParser) Serialize(data any) ([]byte, error)

type NewlineSplitter

type NewlineSplitter struct{}

func (*NewlineSplitter) Split

func (n *NewlineSplitter) Split(raw []byte) ([][]byte, error)

type Parser

type Parser interface {
	Parse(raw []byte) (any, error)
	Serialize(data any) ([]byte, error)
	ContentType() string
}

func NewParser

func NewParser(typeName string) (Parser, error)

type RawParser

type RawParser struct{}

func (*RawParser) ContentType

func (r *RawParser) ContentType() string

func (*RawParser) Parse

func (r *RawParser) Parse(raw []byte) (any, error)

func (*RawParser) Serialize

func (r *RawParser) Serialize(data any) ([]byte, error)

type X12Parser

type X12Parser struct{}

func (*X12Parser) ContentType

func (x *X12Parser) ContentType() string

func (*X12Parser) Parse

func (x *X12Parser) Parse(raw []byte) (any, error)

func (*X12Parser) Serialize

func (x *X12Parser) Serialize(data any) ([]byte, error)

type X12Segment

type X12Segment struct {
	ID       string   `json:"id"`
	Elements []string `json:"elements"`
}

type XMLNode

type XMLNode struct {
	XMLName  xml.Name   `xml:"" json:"-"`
	Attrs    []xml.Attr `xml:"-" json:"attrs,omitempty"`
	Content  string     `xml:",chardata" json:"content,omitempty"`
	Children []*XMLNode `xml:",any" json:"children,omitempty"`
	Tag      string     `xml:"-" json:"tag"`
}

type XMLParser

type XMLParser struct{}

func (*XMLParser) ContentType

func (x *XMLParser) ContentType() string

func (*XMLParser) Parse

func (x *XMLParser) Parse(raw []byte) (any, error)

func (*XMLParser) Serialize

func (x *XMLParser) Serialize(data any) ([]byte, error)

type XMLRootSplitter

type XMLRootSplitter struct{}

func (*XMLRootSplitter) Split

func (x *XMLRootSplitter) Split(raw []byte) ([][]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL