storage

package
v0.0.0-...-5bc7920 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Space = uuid.NewSHA1(uuid.NameSpaceURL, url)
)

Functions

This section is empty.

Types

type MessageRepository

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

func NewMessageRepository

func NewMessageRepository(server *etcdserver.EtcdServer) *MessageRepository

func (*MessageRepository) Save

func (s *MessageRepository) Save(msg *server.Message, stream *server.Stream, lease lease.LeaseID) (int64, error)

type StreamRepository

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

func NewStreamRepository

func NewStreamRepository(server *etcdserver.EtcdServer) *StreamRepository

func (*StreamRepository) Find

func (s *StreamRepository) Find(subject string) []*server.Stream

func (*StreamRepository) Save

func (s *StreamRepository) Save(stream *server.Stream) (string, error)

func (*StreamRepository) Watch

func (s *StreamRepository) Watch(subject string) (<-chan *server.Message, chan<- bool)

Jump to

Keyboard shortcuts

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