api

package
v0.0.0-...-830ec15 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemporalClient

func NewTemporalClient(config *Config, logger *zap.Logger) (client.Client, error)

Types

type Api

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

Api is the API server.

func New

func New(params ApiParams) (*Api, error)

func (*Api) Run

func (a *Api) Run()

type ApiParams

type ApiParams struct {
	fx.In
	Router *gin.Engine
	Logger *zap.Logger
	Config *Config
	Client client.Client
}

ApiParams holds the dependencies for the API.

type Config

type Config struct {
	UploadDir    string
	ProcessedDir string
	TemporalHost string
	TemporalPort string
	TaskQueue    string
}

Config holds the configuration for the API.

func NewConfig

func NewConfig(logger *zap.Logger) (*Config, error)

Jump to

Keyboard shortcuts

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