server

package
v0.0.0-...-3cc26af Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditServer

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

func NewAuditServer

func NewAuditServer(service AuditService) *AuditServer

func (*AuditServer) Log

func (h *AuditServer) Log(ctx context.Context, req audit.LogItem) error

type AuditService

type AuditService interface {
	Insert(ctx context.Context, req audit.LogItem) error
}

type Server

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

func New

func New(auditServer *AuditServer, port int) *Server

func (*Server) CloseConnection

func (s *Server) CloseConnection() error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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