service

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetURL    = "/batch/service/:id"
	ListURL   = "/batch/service"
	PostURL   = "/batch/service"
	PutURL    = "/batch/service"
	DeleteURL = "/batch/service/:id"
)

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(routes gin.IRoutes, service Service)

Types

type Service

type Service interface {
	Create(ctx context.Context, bis *batch.InferenceService) (err error)
	Update(ctx context.Context, id string, bis *batch.InferenceService) (err error)
	Delete(ctx context.Context, id string) (err error)
	Get(ctx context.Context, id string) (res batch.InferenceService, err error)
	List(ctx context.Context, options ...filter.ListOption) (res []batch.InferenceService, err error)
}

Jump to

Keyboard shortcuts

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