store

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticationMiddleware

func AuthenticationMiddleware(authc auth.AuthenticationManager) restful.FilterFunction

func Run

func Run(ctx context.Context, options *StoreOptions) error

Types

type APIDependencies

type APIDependencies struct {
	Agents   *agents.ClientSet
	Database *database.Database
	Mongo    *gomongo.Database
	Authc    auth.AuthenticationManager
	// contains filtered or unexported fields
}

type ModelxOptions

type ModelxOptions struct {
	InitImage string `json:"initImage,omitempty"`
}

type StoreOptions

type StoreOptions struct {
	Listen string              `json:"listen,omitempty"`
	Mongo  *mongo.Options      `json:"mongo,omitempty"`
	Mysql  *database.Options   `json:"mysql,omitempty"`
	Sync   *models.SyncOptions `json:"sync,omitempty"`
	Modelx *ModelxOptions      `json:"modelx,omitempty"`
}

func DefaultOptions

func DefaultOptions() *StoreOptions

type StoreServer

type StoreServer struct {
	Options *StoreOptions
}

func (*StoreServer) Run

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

func (*StoreServer) SetupAPI

func (s *StoreServer) SetupAPI(ctx context.Context, deps APIDependencies) (http.Handler, error)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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