model

package module
v0.0.0-...-dcfb7d8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const AdminTable = "Admin"

AdminTable - Table name

View Source
const ApprovalTable = "Approval"

ApprovalTable - Table name

View Source
const ProposalTable = "Proposal"

ProposalTable - Table name

View Source
const SuperAdminTable = "SuperAdmin"

SuperAdminTable - Table name

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	AdminID string `json:"AdminID"`
	Name    string `json:"Name"`
	Status  string `json:"Status"`
}

Admin ...

type Approval

type Approval struct {
	ApprovalID string `json:"ApprovalID"`
	ProposalID string `json:"ProposalID"`
	ApproverID string `json:"ApproverID"`
	Challenge  string `json:"Challenge"`
	Signature  string `json:"Signature"`
	Message    string `json:"Message"`
	Status     string `json:"Status"`
	CreatedAt  string `json:"CreatedAt"`
}

Approval ...

type Proposal

type Proposal struct {
	ProposalID string `json:"ProposalID"` // set
	Message    string `json:"Message"`    // args[0]
	CreatedBy  string `json:"CreatedBy"`  // args[1]: ID of Admin/SAdmin
	Status     string `json:"Status"`     // set
	CreatedAt  string `json:"CreatedAt"`  // args[2]
	UpdatedAt  string `json:"UpdatedAt"`  // args[3]
}

Proposal - struct

type SuperAdmin

type SuperAdmin struct {
	SuperAdminID string `json:"SuperAdminID"` // keyhandle
	Name         string `json:"Name"`
	PublicKey    string `json:"PublicKey"` // format: pem
	Status       string `json:"Status"`
}

SuperAdmin - Super Admin

Jump to

Keyboard shortcuts

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