concerto

package module
v0.0.0-...-cda3813 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

concerto

Simplifying microservices development with Go-Kit, eliminating boilerplate, and composing harmonious applications. 🎵🚀

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithCallMeta

func ContextWithCallMeta(ctx context.Context, v CallMeta) context.Context

ContextWithCallMeta returns a copy of ctx with v set as the call meta value.

Types

type CallMeta

type CallMeta struct {
	// Service is the name of the service containing the method.
	Service string
	// Method is the name of the specific method.
	Method string
	// Transport is the transport used for the call.
	Transport transport.Transport
}

CallMeta contains metadata related to a method call.

var (
	// NilCallMeta is empty CallMeta, all zero values.
	NilCallMeta CallMeta
)

func CallMetaFromContext

func CallMetaFromContext(ctx context.Context) CallMeta

CallMetaFromContext returns the call meta from ctx.

func (CallMeta) FullMethod

func (c CallMeta) FullMethod() string

FullMethod returns the fully qualified method name (service/method). Example: "concerto.test.v1.TestService/Ping".

type MethodInfo

type MethodInfo struct {
	// Name is the name of the method.
	Name string
	// FullName is the fully qualified name of the method.
	FullName string
}

MethodInfo represents information about a specific method.

Directories

Path Synopsis
Package conv contains common conversions.
Package conv contains common conversions.
Package endpoint contains offers for configuring and constructing github.com/go-kit/kit/endpoint.Endpoint.
Package endpoint contains offers for configuring and constructing github.com/go-kit/kit/endpoint.Endpoint.
middleware/callmeta
Package callmeta provides middleware for setting CallMeta (service name, method name, transport) to the context of the request.
Package callmeta provides middleware for setting CallMeta (service name, method name, transport) to the context of the request.
sample
Package transport contains utilities for all supported transports.
Package transport contains utilities for all supported transports.
thrift
Package thrift provides a Thrift binding for endpoints.
Package thrift provides a Thrift binding for endpoints.
thrift/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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