stream

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(srv iface.Service, ctx context.Context, config *structureSpec.Service, serviceApplication string, matcher *iface.MatchDefinition) (iface.Stream, error)

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Send

func (c *Command) Send(ctx context.Context, body map[string]interface{}) (response.Response, error)

func (*Command) SendTo

func (c *Command) SendTo(ctx context.Context, cid cid.Cid, body map[string]interface{}) (response.Response, error)

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

func (*Stream) Application

func (f *Stream) Application() string

func (*Stream) Close

func (s *Stream) Close()

func (*Stream) Command

func (st *Stream) Command(command string) (iface.Command, error)

func (*Stream) Context

func (f *Stream) Context() context.Context

func (*Stream) Event

func (f *Stream) Event() interface{}

func (*Stream) HandleRaw

func (st *Stream) HandleRaw(cmd *command.Command) (resp response.Response, err error)

func (*Stream) Listen

func (st *Stream) Listen() (protocol string, err error)

func (*Stream) Project

func (f *Stream) Project() string

func (*Stream) ProtocolHash

func (st *Stream) ProtocolHash() (protocol string, err error)

func (*Stream) SmartOps

func (f *Stream) SmartOps() (uint32, error)

func (*Stream) Type

func (f *Stream) Type() uint32

Jump to

Keyboard shortcuts

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