server

package
v0.0.0-...-d2b7839 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 65 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreInit

func CoreInit(ctx context.Context, c *Clients, provider *multichain.Provider, recommender *recommend.Recommender, p *userpref.Personalization) *gin.Engine

CoreInit initializes core server functionality. This is abstracted so the test server can also utilize it

func Init

func Init()

Init initializes the server

func NewMultichainProvider

func NewMultichainProvider(ctx context.Context, envFunc func()) (*multichain.Provider, func())

NewMultichainProvider is a wire injector that sets up a multichain provider instance

func SetDefaults

func SetDefaults()

Types

type Clients

type Clients struct {
	Repos           *postgres.Repositories
	Queries         *db.Queries
	HTTPClient      *http.Client
	EthClient       *ethclient.Client
	IPFSClient      *shell.Shell
	ArweaveClient   *goar.Client
	StorageClient   *storage.Client
	TaskClient      *task.Client
	SecretClient    *secretmanager.Client
	PubSubClient    *pubsub.Client
	MagicLinkClient *magicclient.API
	// contains filtered or unexported fields
}

func ClientInit

func ClientInit(ctx context.Context) *Clients

func (*Clients) Close

func (c *Clients) Close()

Jump to

Keyboard shortcuts

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