feed

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 Imported by: 0

README

feed

import "github.com/smartcontractkit/data-streams-sdk/go/feed"

Overview

Package report implements the Streams feed and feed schema version types.

Index

Package files

doc.go feed.go

type Feed

type Feed struct {
    FeedID ID `json:"feedID"`
}

Feed identifies the report stream ID.

type FeedVersion

type FeedVersion uint16

FeedVersion represents the feed report schema version

const (
    FeedVersion1 FeedVersion
    FeedVersion2
    FeedVersion3
)

type ID

type ID [32]byte

ID type

func (*ID) FromString
func (f *ID) FromString(s string) (err error)
func (*ID) MarshalJSON
func (f *ID) MarshalJSON() (b []byte, err error)

MarshalJSON implements json.Marshaler.

func (*ID) String
func (f *ID) String() (id string)
func (*ID) UnmarshalJSON
func (f *ID) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON implements json.Unmarshaler.

func (*ID) Version
func (f *ID) Version() FeedVersion

Generated by godoc2md

Documentation

Overview

Package report implements the Streams feed and feed schema version types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	FeedID ID `json:"feedID"`
}

Feed identifies the report stream ID.

type FeedVersion

type FeedVersion uint16

FeedVersion represents the feed report schema version

const (
	FeedVersion1 FeedVersion
	FeedVersion2
	FeedVersion3
	FeedVersion4
)

type ID

type ID [32]byte

ID type

func (*ID) FromString

func (f *ID) FromString(s string) (err error)

func (*ID) MarshalJSON

func (f *ID) MarshalJSON() (b []byte, err error)

MarshalJSON implements json.Marshaler.

func (*ID) String

func (f *ID) String() (id string)

func (*ID) UnmarshalJSON

func (f *ID) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON implements json.Unmarshaler.

func (*ID) Version

func (f *ID) Version() FeedVersion

Jump to

Keyboard shortcuts

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