service

package
v0.0.0-...-bae3b6f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StrMaxSize = 1024
)

Service constants

Variables

View Source
var (
	ErrMaxSize = errors.New("maximum size of 1024 bytes exceeded")

	ErrStrValue = errors.New("maximum size of 1024 bytes exceeded")
)

Service errors

Functions

This section is empty.

Types

type Service

type Service interface {
	// Concat a and b
	Concat(req StringRequest, ret *string) error

	// a,b pkg string value
	Diff(req StringRequest, ret *string) error
}

type ServiceMiddleware

type ServiceMiddleware func(Service) Service

ServiceMiddleware define service middleware

type StringRequest

type StringRequest struct {
	A string
	B string
}

type StringService

type StringService struct {
}

ArithmeticService implement Service interface

func (StringService) Concat

func (s StringService) Concat(req StringRequest, ret *string) error

func (StringService) Diff

func (s StringService) Diff(req StringRequest, ret *string) error

Jump to

Keyboard shortcuts

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