swagger_srv

package
v0.0.0-...-2a83a9b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger()

Types

type DiscoveryHandler

type DiscoveryHandler interface {
	GetServices(ctx context.Context) (map[string]models.Service, error)
}

type Service

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

func New

func New(storageHdl StorageHandler, discoveryHdl DiscoveryHandler, docClt doc_clt.ClientItf, ladonClt ladon_clt.ClientItf, timeout time.Duration, apiGtwHost string, adminRoleName string) *Service

func (*Service) SwaggerGetDoc

func (s *Service) SwaggerGetDoc(ctx context.Context, id string, userToken string, userRoles []string) ([]byte, error)

func (*Service) SwaggerGetDocs

func (s *Service) SwaggerGetDocs(ctx context.Context, userToken string, userRoles []string) ([]map[string]json.RawMessage, error)

func (*Service) SwaggerListStorage

func (s *Service) SwaggerListStorage(ctx context.Context, userToken string, userRoles []string) ([]lib_models.SwaggerItem, error)

func (*Service) SwaggerPeriodicProcurement

func (s *Service) SwaggerPeriodicProcurement(ctx context.Context, interval, delay time.Duration) error

func (*Service) SwaggerRefreshDocs

func (s *Service) SwaggerRefreshDocs(ctx context.Context) error

type StorageHandler

type StorageHandler interface {
	List(ctx context.Context) ([]models.StorageData, error)
	Write(ctx context.Context, id string, args [][2]string, data []byte) error
	Read(ctx context.Context, id string) ([]byte, error)
	Delete(ctx context.Context, id string) error
}

Jump to

Keyboard shortcuts

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