v2_service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ContextReqUUid = "req_uuid"

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	A int `json:"a"`
	B int `json:"b"`
}

type AddAck

type AddAck struct {
	Res int `json:"res"`
}

type NewMiddlewareServer

type NewMiddlewareServer func(Service) Service

func NewLogMiddlewareServer

func NewLogMiddlewareServer(log *zap.Logger) NewMiddlewareServer

type Service

type Service interface {
	TestAdd(ctx context.Context, in Add) AddAck
}

func NewService

func NewService(log *zap.Logger) Service

Jump to

Keyboard shortcuts

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