common

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ReplaceMe = ""

Variables

View Source
var (
	WebSocketFormat   = "ws-%s/%s"
	WebSocketHttpPath = "/ws-{hash}/{channel:.+}"
	Logger            = log.Logger("tau.substrate.service.pubsub")
)

Functions

This section is empty.

Types

type LocalService

type LocalService interface {
	iface.Service
	Lookup(matcher *MatchDefinition) (picks []iface.Serviceable, err error)
	Context() context.Context
}

type MatchDefinition

type MatchDefinition struct {
	Channel     string
	Project     string
	Application string
	WebSocket   bool
	Commit      string
}

func (*MatchDefinition) CachePrefix

func (m *MatchDefinition) CachePrefix() string

func (*MatchDefinition) GenerateSocketURL

func (m *MatchDefinition) GenerateSocketURL() string

func (*MatchDefinition) Path

func (m *MatchDefinition) Path() string

func (*MatchDefinition) String

func (m *MatchDefinition) String() string

type MessagingItem

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

func (*MessagingItem) Application

func (i *MessagingItem) Application() string

func (*MessagingItem) Config

func (i *MessagingItem) Config() *structureSpec.Messaging

func (*MessagingItem) Project

func (i *MessagingItem) Project() string

type MessagingMap

type MessagingMap struct {
	Function  MessagingMapItem
	WebSocket MessagingMapItem
	HasAny    bool
}

type MessagingMapItem

type MessagingMapItem struct {
	Items []*MessagingItem
}

func (*MessagingMapItem) Len

func (mmi *MessagingMapItem) Len() int

func (*MessagingMapItem) Matches

func (mmi *MessagingMapItem) Matches(channel string) []*structureSpec.Messaging

func (*MessagingMapItem) Names

func (mmi *MessagingMapItem) Names() []string

Used for getting names of messaging channels in tests

func (*MessagingMapItem) Push

func (mmi *MessagingMapItem) Push(project, application string, m *structureSpec.Messaging)

Jump to

Keyboard shortcuts

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