model

package
v0.0.0-...-2691469 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailPwdBody

type EmailPwdBody struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type EmailSettings

type EmailSettings struct {
	ImapAddress string `json:"imapAddress"`
	ImapPort    int    `json:"imapPort"`
	Email       string `json:"email"`
	Password    string `json:"password"`
	Folder      string `json:"folder"`
}

type HttpBody

type HttpBody struct {
	Params []Param `json:"params"`
}

type HttpSender

type HttpSender struct {
	Params    []Param `json:"params"`
	Timestamp int64   `json:"timestamp"`
	NextRun   int64   `json:"next_run"`
}

type LoginResponse

type LoginResponse struct {
	Login  string        `json:"login"`
	Config ServiceConfig `json:"config"`
}

type Param

type Param struct {
	Name  string   `json:"name"`
	Value []string `json:"value"`
}

type ServiceConfig

type ServiceConfig struct {
	EmailSettings   EmailSettings           `json:"emailSettings"`
	ContentPatterns []ServiceContentPattern `json:"contentPatterns"`
	CallbackUrl     string                  `json:"callbackUrl"`
}

type ServiceContentPattern

type ServiceContentPattern struct {
	Param   string `json:"param"`
	Regex   string `json:"regex"`
	Require bool   `json:"require"`
}

type SocketMessage

type SocketMessage struct {
	MsgType string `json:"msg_type"`
	Data    string `json:"data"`
}

Jump to

Keyboard shortcuts

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