server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEndpointFn

type CreateEndpointFn = func(router *mux.Router) error

type Server

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

func NewServer

func NewServer(address string, tlsConfig *tls.Config) (*Server, error)

func (*Server) AddCreateEndpoint

func (server *Server) AddCreateEndpoint(fn CreateEndpointFn)

func (*Server) Address

func (server *Server) Address() string

func (*Server) Port

func (server *Server) Port() (int, error)

func (*Server) Run

func (server *Server) Run(group task.TaskGroup) error

func (*Server) SetCreateEndpoint

func (server *Server) SetCreateEndpoint(name string, fn CreateEndpointFn)

Jump to

Keyboard shortcuts

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