store

package
v1.22.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 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
}

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"`
}

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