objects

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package objects implements the STIX 2 object model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) (interface{}, string, error)

Decode - This function will take in a slice of bytes representing a random STIX object encoded as JSON, decode it to the appropriate STIX object struct, and return object itself, its STIX ID, and any possible errors.

func DecodeType

func DecodeType(data []byte) (string, error)

DecodeType - This function will take in a slice of bytes representing a random STIX object encoded as JSON and return the STIX object type as a string.

Types

type STIXObject

type STIXObject interface {
}

Jump to

Keyboard shortcuts

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