redis

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type   = "redis"
	TypeV1 = Type + runtime.VersionSeparator + "v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

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

Method finally publishes events.

func (*Method) NotifyComponentVersion

func (m *Method) NotifyComponentVersion(version common.NameVersion) error

type Spec

type Spec struct {
	runtime.ObjectVersionedType
	ServerAddr string `json:"serverAddr"`
	Channel    string `json:"channel"`
	Database   int    `json:"database"`
}

Spec provides a pub sub adapter registering events at its provider.

func New

func New(serverurl, channel string, db int) (*Spec, error)

func (*Spec) Describe

func (s *Spec) Describe(_ cpi.Context) string

func (*Spec) PubSubMethod

func (s *Spec) PubSubMethod(repo cpi.Repository) (pubsub.PubSubMethod, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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