hydraproto

package module
v0.0.0-...-dc25343 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: GPL-3.0 Imports: 3 Imported by: 1

README

hydra-proto-go

This holds the golang binding for the proto definitions for the messages that are sent to IPFS pubsub via Hydra.

Use

To use the bindings in your go project you just simply import it:

import pb "github.com/halonproject/hydra-proto-go"

Re-compile

In order to recompile the go bindings you should follow the instructions in the hydra-proto repo

LICENSE

GPL-3.0

Documentation

Overview

Package hydraproto is a generated protocol buffer package.

It is generated from these files:

header.proto
message.proto

It has these top-level messages:

Header
Message

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Key   string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Header) Descriptor

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetKey

func (m *Header) GetKey() string

func (*Header) GetValue

func (m *Header) GetValue() []byte

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

type Message

type Message struct {
	Value     []byte    `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Key       []byte    `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Timestamp int64     `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
	Headers   []*Header `protobuf:"bytes,4,rep,name=headers" json:"headers,omitempty"`
	Encrypted bool      `protobuf:"varint,5,opt,name=encrypted" json:"encrypted,omitempty"`
}

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetEncrypted

func (m *Message) GetEncrypted() bool

func (*Message) GetHeaders

func (m *Message) GetHeaders() []*Header

func (*Message) GetKey

func (m *Message) GetKey() []byte

func (*Message) GetTimestamp

func (m *Message) GetTimestamp() int64

func (*Message) GetValue

func (m *Message) GetValue() []byte

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

Jump to

Keyboard shortcuts

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