greeting

package
v0.0.0-...-bab6c82 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(validator MessageValidator, tileMaker TileMaker, staticDir, appURL string) *service

func NewTransporter

func NewTransporter(h internalhttp.HandlerMaker, s Service) *transporter

Types

type FrameActionRequest

type FrameActionRequest struct {
	MessageBytes []byte
}

type MessageValidator

type MessageValidator interface {
	ValidateMessage(context.Context, []byte) (farcaster.Message, error)
}

type Service

type Service interface {
	ValidateMessage(ctx context.Context, messageBytes []byte) (farcaster.Message, error)
	CreateTile(ctx context.Context, spec tile.Spec) (string, error)
	StaticDir() string
	AppURL() string
}

type TileMaker

type TileMaker interface {
	MakeTile(spec tile.Spec) (URL string, err error)
}

Jump to

Keyboard shortcuts

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