server

package
v0.0.0-...-1f5ab75 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SQLITE_DATABASE = "db/eventsub.db"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(ctx context.Context, cfg *config.Config) (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context, cn twitch.Connect_t, port int) error

type Table

type Table struct {
	gorm.Model

	MessageID string `gorm:"uniqueIndex"`
}

Table contains a list of message ids that has been handled.

type ZapWriter

type ZapWriter struct {
	*zap.SugaredLogger
}

func (ZapWriter) Write

func (w ZapWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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