serve

package
v0.0.0-...-299fa76 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a middleman between the websocket connection and the hub.

type Hub

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

Hub maintains the set of active clients and broadcasts messages to the clients.

type Serve

type Serve struct{}

Serve is a struct that represents a Serve routine.

func (*Serve) Execute

func (s *Serve) Execute(env *config.Env) error

Execute will start the routine.

func (*Serve) Name

func (s *Serve) Name() string

Name will return the name of the routine.

func (*Serve) Parse

func (s *Serve) Parse(args []string) (map[string]any, error)

Parse will use the internal flag.FlagSet to parse the given arguments.

Jump to

Keyboard shortcuts

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