client

package
v0.0.0-...-ffa717b Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuotesClient

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

QuotesClient имплементация rpc клиента цитат

func NewQuotesClient

func NewQuotesClient(addr string) *QuotesClient

NewQuotesClient конструктор rpc клиента цитат

func (*QuotesClient) GetRandomQuote

func (q *QuotesClient) GetRandomQuote(ctx context.Context) (entity.QuoteDTO, error)

GetRandomQuote rpc запрос на получение случайной цитаты

func (*QuotesClient) HealthCheck

func (q *QuotesClient) HealthCheck(ctx context.Context) error

HealthCheck rpc запрос на проверку доступности клиента

type RPCQuoteser

type RPCQuoteser interface {
	GetRandomQuote(ctx context.Context) (entity.QuoteDTO, error)
	HealthCheck(ctx context.Context) error
}

RPCQuoteser интерфейс rpc для клиента цитат

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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