l2

package
v0.0.0-...-8c125ef Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, databaseClient database.Client, controlClient *control.StateClientWriter, redisClient *redis.Client, config *Config, billingConfig *config.Billing, settlerConfig *config.Settler) (service.Server, error)

Types

type Config

type Config struct {
	Endpoint string `yaml:"endpoint"`
}

type SlackMessageBlock

type SlackMessageBlock struct {
	Type     string                `json:"type"`
	Text     *SlackMessageElement  `json:"text,omitempty"`
	Elements []SlackMessageElement `json:"elements,omitempty"`
}

type SlackMessageElement

type SlackMessageElement struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

type SlackMessageStructure

type SlackMessageStructure struct {
	Channel string              `json:"channel"`
	Text    string              `json:"text"` // For fallback and notification
	Blocks  []SlackMessageBlock `json:"blocks"`
}

Jump to

Keyboard shortcuts

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