internal

package
v0.0.0-...-08e1117 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoConnectServer

type EchoConnectServer struct {
	EchoService
}

func NewEchoConnectServer

func NewEchoConnectServer(service EchoService) *EchoConnectServer

EchoConnectServer implements methods to handle requests by calling service methods. The logic here should be minimal and most work should be handled either in middleware or the actual service pkg. Extensive logic here indicates that our API and domain logic are drifting.

func (*EchoConnectServer) EchoInt

func (*EchoConnectServer) EchoString

func (*EchoConnectServer) GetHttpHandler

func (es *EchoConnectServer) GetHttpHandler() (string, http.Handler)

type EchoService

type EchoService interface {
	EchoString(req *pb.EchoStringRequest) (*pb.EchoStringResponse, error)
	EchoInt(req *pb.EchoIntRequest) (*pb.EchoIntResponse, error)
}

type SavedEcho

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

func NewSavedEcho

func NewSavedEcho(value string) *SavedEcho

Jump to

Keyboard shortcuts

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