server

command
v0.0.0-...-301923a Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Main server entry point.

Data flow through interfaces during a client request

	[client code] wysteria/client
		|
		| * ---------------------------- enter middleware ---------------------------- *
		|
		V
 	[client transport code]  Interface: EndpointClient   wysteria/common/middleware.go
		|
       === \\ network //
		|
		V
	[server transport code]  Interface: ServerHandler    wysteria/common/middleware.go
		|
		| * ---------------------------- exit middleware ---------------------------- *
		|
		V
	[middleware shim layer]  Interface: EndpointServer  wysteria/server/instrumentation_middleware.go
		|
		|
		V
	[main server]  Interface: EndpointServer  wysteria/server/server.go
		|
		|
		|   [Nb. What order this goes to the searchbase / database (or even if it does) depends on the operation]
		+------/--------+----------------------------------------------------------------------------------+
						|                                                                                  |
						V                                                                                  |
			[database shim layer] Interface: Database wysteria/server/instrumentation_database.go          |
						|                                                                                  V
						|      [searchbase shim layer] Interface: Searchbase wysteria/server/instrumentation_searchbase.go
						V                                                                                  |
			[database layer] Interface: Database wysteria/server/database/database.go                      |
						|                                                                                  V
						|      [searchbase layer] Interface: Searchbase wysteria/server/searchbase/searchbase.go
						V                                                                                  |
			[database shim layer] Interface: Database wysteria/server/instrumentation_database.go 		   |
						|                                                                                  V
                        |      [searchbase shim layer] Interface: Searchbase wysteria/server/instrumentation_searchbase.go
						|                                                                                  |
						|                                                                                  |
		+---------------+----------------------------------------------------------------------------------+
		|
		V
    [middleware shim layer]  Interface: EndpointServer  wysteria/server/instrumentation_middleware.go
		|
		|
		| * ---------------------------- enter middleware ---------------------------- *
		|
		V
	[server transport code]  Interface: ServerHandler    wysteria/common/middleware.go
		|
       === \\ network //
		|
		V
    [client transport code]  Interface: EndpointClient   wysteria/common/middleware.go
		|
		| * ---------------------------- exit middleware ---------------------------- *
		|
		V
 	[client code] wysteria/client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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