server

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package server provides the server application for the jrp.

Package server is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(e proxy.Echo)

Bind binds the routes to the server.

Types

type CreateServerFunc

type CreateServerFunc func(echo proxy.Echos) Server

CreateServerFunc is a function type for creating new server instances.

var (
	// NewServer is a variable holding the current server creation function.
	NewServer CreateServerFunc = newServer
)

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) Init

func (m *MockServer) Init(envconfig proxy.Envconfig, fileUtil utility.FileUtil, sql proxy.Sql) int

Init mocks base method.

func (*MockServer) Run

func (m *MockServer) Run() int

Run mocks base method.

type MockServerMockRecorder

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

MockServerMockRecorder is the mock recorder for MockServer.

func (*MockServerMockRecorder) Init

func (mr *MockServerMockRecorder) Init(envconfig, fileUtil, sql any) *gomock.Call

Init indicates an expected call of Init.

func (*MockServerMockRecorder) Run

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

Run indicates an expected call of Run.

type Server

type Server interface {
	Init(envconfig proxy.Envconfig, fileUtil utility.FileUtil, sql proxy.Sql) int
	Run() int
}

Server is an interface that provides a proxy of the methods of jrp server.

Directories

Path Synopsis
Package jrp provides the entry points for the Jrp server client.
Package jrp provides the entry points for the Jrp server client.

Jump to

Keyboard shortcuts

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