Documentation ¶
Index ¶
- type EchoConnectServer
- func (es *EchoConnectServer) EchoInt(ctx context.Context, req *connect.Request[pb.EchoIntRequest]) (*connect.Response[pb.EchoIntResponse], error)
- func (es *EchoConnectServer) EchoString(ctx context.Context, req *connect.Request[pb.EchoStringRequest]) (*connect.Response[pb.EchoStringResponse], error)
- func (es *EchoConnectServer) GetHttpHandler() (string, http.Handler)
- type EchoService
- type SavedEcho
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 (es *EchoConnectServer) EchoInt(ctx context.Context, req *connect.Request[pb.EchoIntRequest]) (*connect.Response[pb.EchoIntResponse], error)
func (*EchoConnectServer) EchoString ¶
func (es *EchoConnectServer) EchoString(ctx context.Context, req *connect.Request[pb.EchoStringRequest]) (*connect.Response[pb.EchoStringResponse], error)
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) }
Click to show internal directories.
Click to hide internal directories.