entities

package
v0.0.0-...-e31b469 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	ID        string `gorm:"type:char(36);primary_key"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `sql:"index"`
}

BaseModel : this is basic fields in database tables.

type Instance

type Instance struct {
	BaseModel
	ServiceID string
	Address   string
	Port      string
}

Instance : the information of service instance .

type Resource

type Resource struct {
	BaseModel
	ServiceID    string
	Name         string
	GetMethod    string
	PostMethod   string
	PutMethod    string
	DeleteMethod string
}

Resource : the entities of service resource.

type Service

type Service struct {
	BaseModel
	Name        string
	Version     int
	Description string
}

Service : the information of service .

Jump to

Keyboard shortcuts

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