stringsvc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Text     string
	Relates  *Comment
	PostedAt time.Time
}

Example structure

type StringService

type StringService interface {
	// @logs-ignore ans, err
	// @cache
	Uppercase(ctx context.Context, stringsMap map[string]string) (ans string, err error)
	// @http-method geT
	// @cache-key text
	// @json-rpc-prefix v1.
	Count(ctx context.Context, text string, symbol string) (count int, positions []int, err error)
	// @logs-len comments
	TestCase(ctx context.Context, comments []*Comment) (tree map[string]int, err error)

	DummyMethod(ctx context.Context) (err error)

	// @microgen -
	IgnoredMethod()
	// @microgen -
	IgnoredErrorMethod() error
}

@microgen middleware, logging, grpc, http, recovering, error-logging, tracing, caching, metrics, service-discovery @grpc-addr service.string.StringService @protobuf github.com/recolabs/microgen/examples/protobuf

Directories

Path Synopsis
cmd
string_service
Microgen appends missed functions.
Microgen appends missed functions.
grpc
Please, do not change functions names! It is better for you if you do not change functions names! This file will never be overwritten.
Please, do not change functions names! It is better for you if you do not change functions names! This file will never be overwritten.
http
Please, do not change functions names!
Please, do not change functions names!

Jump to

Keyboard shortcuts

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