vaa

package
v0.0.0-...-ce1b770 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller controller struct definition.

func NewController

func NewController(pushMetric metric.MetricPushFunc, repository *Repository, logger *zap.Logger) *Controller

NewController create a new controller.

func (*Controller) PushVAAMetrics

func (c *Controller) PushVAAMetrics(ctx *fiber.Ctx) error

PushVAAMetrics push vaa metrics.

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository repository struct definition.

func NewRepository

func NewRepository(db *mongo.Database, logger *zap.Logger) *Repository

NewRepository create a new Repository.

func (*Repository) FindById

func (r *Repository) FindById(ctx context.Context, id string) (*VaaDoc, error)

FindById find a vaa by id.

type VaaDoc

type VaaDoc struct {
	ID  string `bson:"_id" json:"id"`
	Vaa []byte `bson:"vaas" json:"vaa"`
}

VaaDoc vaa document struct definition.

Jump to

Keyboard shortcuts

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