server

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxAnalyzeAPICall int64
	BaseURL           string
	OpenAIToken       string
	ChatGPTModel      string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(maxAnalyzeAPICall int64, baseURL, openaiToken, chatGPTModel, defaultLocale string, excludeDeleteDataSource []string) Config

type Server

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

func NewServer

func NewServer(host string, port string, db *db.Client, logger logging.Logger, config Config) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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