deps

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceRouter

NewServiceRouter creates a new service router for Deps

Types

type ApiDoc

type ApiDoc struct {
	Openapi string `json:"openapi"`
	Swagger string `json:"swagger"`
}

ApiDoc ...

func (*ApiDoc) Validate

func (s *ApiDoc) Validate() error

*ApiDoc validator

type Client

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

Client for Deps API

func NewClient

func NewClient(client *http.Client, serviceURL string) *Client

NewClient for Deps

func (*Client) GetApiDocsList

func (s *Client) GetApiDocsList(ctx context.Context, req *GetApiDocsListRequest) (*ApiDoc, error)

GetApiDocsList ...

func (*Client) GetSuccessList added in v0.25.0

func (s *Client) GetSuccessList(ctx context.Context, req *GetSuccessListRequest) (*http.Header, error)

GetSuccessList ...

type DefaultDepsImpl

type DefaultDepsImpl struct {
}

DefaultDepsImpl ...

func NewDefaultDepsImpl

func NewDefaultDepsImpl() *DefaultDepsImpl

NewDefaultDepsImpl for Deps

type DownstreamConfig

type DownstreamConfig struct {
	ContextTimeout time.Duration `yaml:"contextTimeout"`
}

DownstreamConfig for Deps

type GetApiDocsListClient

type GetApiDocsListClient struct {
}

GetApiDocsList Client

type GetApiDocsListRequest

type GetApiDocsListRequest struct {
}

GetApiDocsListRequest ...

type GetSuccessListClient added in v0.25.0

type GetSuccessListClient struct {
}

GetSuccessList Client

type GetSuccessListRequest added in v0.25.0

type GetSuccessListRequest struct {
}

GetSuccessListRequest ...

type Handler

type Handler interface {
	GetApiDocsListHandler(w http.ResponseWriter, r *http.Request)
	GetSuccessListHandler(w http.ResponseWriter, r *http.Request)
}

Handler interface for Deps

type Router

type Router interface {
	Route(router *chi.Mux)
}

Router interface for Deps

type Service

type Service interface {
	GetApiDocsList(ctx context.Context, req *GetApiDocsListRequest) (*ApiDoc, error)
	GetSuccessList(ctx context.Context, req *GetSuccessListRequest) (*http.Header, error)
}

Service interface for Deps

type ServiceHandler

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

ServiceHandler for Deps API

func NewServiceHandler

func NewServiceHandler(genCallback core.RestGenCallback, serviceInterface *ServiceInterface) *ServiceHandler

NewServiceHandler for Deps

func (*ServiceHandler) GetApiDocsListHandler

func (s *ServiceHandler) GetApiDocsListHandler(w http.ResponseWriter, r *http.Request)

GetApiDocsListHandler ...

func (*ServiceHandler) GetSuccessListHandler added in v0.25.0

func (s *ServiceHandler) GetSuccessListHandler(w http.ResponseWriter, r *http.Request)

GetSuccessListHandler ...

type ServiceInterface

type ServiceInterface struct {
	GetApiDocsList func(ctx context.Context, req *GetApiDocsListRequest, client GetApiDocsListClient) (*ApiDoc, error)
	GetSuccessList func(ctx context.Context, req *GetSuccessListRequest, client GetSuccessListClient) error
}

ServiceInterface for Deps

type ServiceRouter

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

ServiceRouter for Deps API

func (*ServiceRouter) Config

func (s *ServiceRouter) Config() interface{}

Config ...

func (*ServiceRouter) Name

func (s *ServiceRouter) Name() string

Name ...

func (*ServiceRouter) WireRoutes

func (s *ServiceRouter) WireRoutes(ctx context.Context, r chi.Router)

WireRoutes ...

type Status

type Status struct {
	StatusField string `json:"statusField"`
}

Status ...

func (Status) Error

func (s Status) Error() string

Error fulfills the error type interface for Status

func (*Status) Validate

func (s *Status) Validate() error

*Status validator

Jump to

Keyboard shortcuts

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