feign

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	GetTestClient() TestClient
}

type FactoryImpl

type FactoryImpl struct {
	types.Component `name:"feign_factory"`
	TestClient      TestClient `wire:""`
}

func (*FactoryImpl) GetTestClient

func (r *FactoryImpl) GetTestClient() TestClient

type TestClient

type TestClient interface {
	FindAllUsers() ([]*dto.AccountDTO, error)
	GetUserById(ctx context.Context, username string) (*dto.AccountDTO, error)
	SaveUser(ctx context.Context, username string, employee *dto.AccountDTO) (resp.Response, error)
}

type TestClientImpl

type TestClientImpl struct {
	feign.BaseClient
	Port int `value:"server.port"`
	// contains filtered or unexported fields
}

func (*TestClientImpl) FindAllUsers

func (c *TestClientImpl) FindAllUsers() ([]*dto.AccountDTO, error)

func (*TestClientImpl) GetUserById

func (c *TestClientImpl) GetUserById(ctx context.Context, username string) (*dto.AccountDTO, error)

func (*TestClientImpl) Init

func (c *TestClientImpl) Init() error

func (*TestClientImpl) SaveUser

func (c *TestClientImpl) SaveUser(ctx context.Context, username string, employee *dto.AccountDTO) (resp.Response, error)

func (*TestClientImpl) Url

func (c *TestClientImpl) Url() string

Jump to

Keyboard shortcuts

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