rc_protocol

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: ISC Imports: 15 Imported by: 0

README

rc-protocol

Golang implementation of the rc-protocol

This module is used to build Golang remote-control servers and clients.

Install

TBD

Documentation

Index

Constants

View Source
const AUTH_HEADER_NAME = "authorization"
View Source
const ISO_8601_FORMAT = "2006-01-02T15:04:05-0700"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	CreateSig(name string, keyDir string) (string, error)
	CheckSig(header string, certDir string) (bool, error)
	GetHeaderName() string
	ParseHeader(header string) []string
}

type Message

type Message interface{}

type RCProtocol

type RCProtocol interface {
	Message(json string) Message
	Response(json string) Response
	Auth
}

func NewRCProtocol

func NewRCProtocol() RCProtocol

type Response

type Response interface{}

Jump to

Keyboard shortcuts

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