healthcheck

package module
v0.0.0-...-6d88a91 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 1 Imported by: 0

README

healthcheck

Requirements

Before build

  • Place protoc command and includes, Install protoc-gen-go, Generate .pb.go

    $ make gen
    

Build

  • Build modules
    # build
    $ make
    
  • Build docker images
    $ make images
    

Run

  • Run servers.
    $ docker-compose up
    
  • e.g.) Run load test.
    $ go run ./cmd/helloattacker/ -server localhost:3002 -duration 3m -rate 100/s > results.bin
    $ vegeta report < results.bin
    

Modules

healthy-grpc

  • gRPC server that serving api.Greeter
  • api.Greeter.SayHello() randomly raise panic.

helloclient

  • gRPC client for invoke api.Greeter.SayHello()

helloattacker

  • Load test client about api.Greeter.SayHello
  • It uses vegeta as library.

My environment

  • CentOS Stream 8 x64
  • GNU Make 4.2.1
  • Go 1.20.6
  • Docker CE 24.0.5
  • Docker Compose 2.20.2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriterWrapper

type ResponseWriterWrapper struct {
	http.ResponseWriter

	StatusCode int
}

func NewResponseWriterWrapper

func NewResponseWriterWrapper(w http.ResponseWriter) *ResponseWriterWrapper

func (*ResponseWriterWrapper) WriteHeader

func (w *ResponseWriterWrapper) WriteHeader(code int)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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