secondary

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecodaryPort

type SecodaryPort interface {
	// Call(context.Context) (string, error)
	Call(context.Context) SecondaryPortCallResult
	SetDestId(string)
	GetDestId() string
}

SecodaryPort provides common interface for all the external service resouce. Example resources include: - REST API routes - gRPC methods - Kafka topic - Database table

It is intended to represent the individual endpoints on each exteranl service, not the services themselves; hence the name `SecodaryPort`

type SecondaryAdapterClient

type SecondaryAdapterClient interface {
	Close()
}

Used to reuse clients to other serivces Wrapper interface, so the struct to implement this should have pointer to actual client types to implement this interface should have some sort of pointer to clients

type SecondaryPortBase

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

func (*SecondaryPortBase) GetDestId

func (spb *SecondaryPortBase) GetDestId() string

func (*SecondaryPortBase) SetDestId

func (spb *SecondaryPortBase) SetDestId(id string)

type SecondaryPortCallResult

type SecondaryPortCallResult struct {
	Payload *string
	Error   error
	// contains filtered or unexported fields
}

func (SecondaryPortCallResult) GetIsCritical

func (spcr SecondaryPortCallResult) GetIsCritical() bool

func (*SecondaryPortCallResult) SetError

func (spcr *SecondaryPortCallResult) SetError(err error)

func (*SecondaryPortCallResult) SetIsCritical

func (spcr *SecondaryPortCallResult) SetIsCritical(isCritical bool)

Jump to

Keyboard shortcuts

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