v3_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 6

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 Login

type Login struct {
	Account  string `json:"account"`
	Password string `json:"password"`
}

type LoginAck

type LoginAck struct {
	Token string `json:"token"`
}

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
	Login(ctx context.Context, in Login) (ack LoginAck, err error)
}

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