server

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/qmdx00/lifecycle (interfaces: Server)

Generated by this command:

mockgen -package server -destination ../pkg/server/mocks.go github.com/qmdx00/lifecycle Server

Package server is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGrpcServer added in v0.70.0

func BuildGrpcServer(address string, server *grpc.Server) lifecycle.Server

func BuildHttpServer

func BuildHttpServer(server *http.Server) lifecycle.Server

Types

type GrpcServer added in v0.70.0

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

func (*GrpcServer) Run added in v0.70.0

func (server *GrpcServer) Run(ctx context.Context) error

func (*GrpcServer) Stop added in v0.70.0

func (server *GrpcServer) Stop(ctx context.Context) error

type HttpServer

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

func (*HttpServer) Run

func (server *HttpServer) Run(ctx context.Context) error

func (*HttpServer) Stop

func (server *HttpServer) Stop(ctx context.Context) error

type MockServer

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

MockServer is a mock of Server interface.

func NewMockServer

func NewMockServer(ctrl *gomock.Controller) *MockServer

NewMockServer creates a new mock instance.

func (*MockServer) EXPECT

func (m *MockServer) EXPECT() *MockServerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockServer) Run

func (m *MockServer) Run(arg0 context.Context) error

Run mocks base method.

func (*MockServer) Stop

func (m *MockServer) Stop(arg0 context.Context) error

Stop mocks base method.

type MockServerMockRecorder

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

MockServerMockRecorder is the mock recorder for MockServer.

func (*MockServerMockRecorder) Run

func (mr *MockServerMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

func (*MockServerMockRecorder) Stop

func (mr *MockServerMockRecorder) Stop(arg0 any) *gomock.Call

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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