civiliango

package module
v0.0.2-zeta Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 6 Imported by: 1

README

townland/civiliango

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(address string, secure bool) endpoint

Types

type Building

type Building struct {
	Home string `json:"home"`
	Room string `json:"room"`
}

type Data

type Data string

func DataFromMap

func DataFromMap(data interface{}) Data

func (Data) ToJson

func (data Data) ToJson(to interface{}) (err error)

type ReciveBackFunc

type ReciveBackFunc func(mail ReciveMail)

type ReciveFunc

type ReciveFunc func(mail ReciveMail) *SendMail

type ReciveMail

type ReciveMail struct {
	At    int64    `json:"at"`
	UUID  string   `json:"uuid"`
	Guest bool     `json:"guest"`
	From  Building `json:"from"`
	Data  Data     `json:"data"`
}

func (*ReciveMail) Send

func (recive *ReciveMail) Send(data Data) *SendMail

type SendMail

type SendMail struct {
	Event string   `json:"event"`
	To    Building `json:"to"`
	Data  Data     `json:"data"`
}

Jump to

Keyboard shortcuts

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