core

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 32 Imported by: 0

README

GoDoc

core

import "github.com/go-coldbrew/core"

Index

type CB

type CB interface {
    SetService(CBService) error
    Run() error
    SetOpenAPIHandler(http.Handler)
    Stop(time.Duration) error
}
func New
func New(c config.Config) CB

New creates a new ColdBrew object

type CBService

type CBService interface {
    InitHTTP(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error
    InitGRPC(ctx context.Context, server *grpc.Server) error
}

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CB

type CB interface {
	SetService(CBService) error
	Run() error
	SetOpenAPIHandler(http.Handler)
	Stop(time.Duration) error
}

func New

func New(c config.Config) CB

New creates a new ColdBrew object

type CBService

type CBService interface {
	InitHTTP(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error
	InitGRPC(ctx context.Context, server *grpc.Server) error
}

type CBStopper added in v0.1.1

type CBStopper interface {
	Stop()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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