Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePublishRequest ¶
func ValidatePublishRequest(ctx context.Context, req *metrov1.PublishRequest) (err error)
ValidatePublishRequest validates the publish request
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core implements IPublisher
type ICore ¶
type ICore interface {
Publish(ctx context.Context, req *metrov1.PublishRequest) ([]string, error)
}
ICore is an interface over publisher core
type IPublisher ¶
type IPublisher interface { // the grpc proto is used here as well, to optimise for serialization // a little unclean but optimal Publish(ctx context.Context, req *metrov1.PublishRequest) ([]string, error) }
IPublisher is interface over high level publisher
Click to show internal directories.
Click to hide internal directories.