example

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package example provides embedded microservice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx = context.Context

Ctx is a synonym for convenience.

type Service

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

Service implements main.embeddedService interface.

func (*Service) Init

func (s *Service) Init(sharedCfg *config.SharedCfg, cmd, serveCmd *cobra.Command) error

Init implements main.embeddedService interface.

func (*Service) Name

func (s *Service) Name() string

Name implements main.embeddedService interface.

func (*Service) RunServe

func (s *Service) RunServe(ctxStartup, ctxShutdown Ctx, shutdown func()) (err error)

RunServe implements main.embeddedService interface.

Directories

Path Synopsis
internal
app
Package app provides business logic.
Package app provides business logic.
config
Package config provides configurations for subcommands.
Package config provides configurations for subcommands.
dal
Package dal implements Data Access Layer using MySQL DB.
Package dal implements Data Access Layer using MySQL DB.
migrations
Package migrations provides goose migrations.
Package migrations provides goose migrations.
srv/jsonrpc2
Package jsonrpc2 implements JSON-RPC 2.0 method handlers.
Package jsonrpc2 implements JSON-RPC 2.0 method handlers.

Jump to

Keyboard shortcuts

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