websockets

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers = wire.NewSet(
	ProvideService,
)

Providers is our collection of what we provide to other services.

Functions

func ProvideService

func ProvideService(
	ctx context.Context,
	authCfg *authservice.Config,
	logger logging.Logger,
	encoder encoding.ServerEncoderDecoder,
	consumerProvider consumers.ConsumerProvider,
) (types.WebsocketDataService, error)

ProvideService builds a new websocket service.

Types

type Config

type Config struct {
	Logging logging.Config `json:"logging" mapstructure:"logging" toml:"logging,omitempty"`
	// contains filtered or unexported fields
}

Config configures the service.

func (*Config) ValidateWithContext

func (cfg *Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates a Config struct.

Jump to

Keyboard shortcuts

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