services

package
v1.21.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

README

under construction ... 🚧 🚧 🚧 service api v2 base on gp-restful

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRest

func NewRest(deps *Dependencies, opts *options.Options) *restful.Container

func Run

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

func RunRest

func RunRest(ctx context.Context, opts *system.Options, handler http.Handler) error

Types

type Dependencies

type Dependencies struct {
	Options   *options.Options
	Redis     *redis.Client
	Databse   *database.Database
	Argocli   *argo.Client
	Git       *git.SimpleLocalProvider
	Agentscli *agents.ClientSet
}

type RestHandler

type RestHandler interface {
	Regist(c *restful.Container)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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