model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package model is a generated protocol buffer package.

It is generated from these files:

locs.proto

It has these top-level messages:

Locs

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLocs = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLocs   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type ArgFeedBack

type ArgFeedBack struct {
	Mid  int64  `json:"mid,omitempty"`
	UUID string `json:"uuid,omitempty"`
	IP   string `json:"ip,omitempty"`
	Type int8   `json:"type,omitempty"`
	Ts   int64  `json:"ts"`
}

ArgFeedBack arg feedback.

type ArgSecure

type ArgSecure struct {
	Mid  int64  `json:"mid,omitempty"`
	UUID string `json:"uuid,omitempty"`
}

ArgSecure arg secure.

type Expection

type Expection struct {
	IP       uint64    `json:"ip"`
	Time     time.Time `json:"time"`
	FeedBack int8      `json:"feedback"`
}

Expection is user expection record.

type Locs

type Locs struct {
	LocsCount map[int64]int64 `` /* 154-byte string literal not displayed */
}

func (*Locs) Descriptor

func (*Locs) Descriptor() ([]byte, []int)

func (*Locs) Marshal

func (m *Locs) Marshal() (dAtA []byte, err error)

func (*Locs) MarshalTo

func (m *Locs) MarshalTo(dAtA []byte) (int, error)

func (*Locs) ProtoMessage

func (*Locs) ProtoMessage()

func (*Locs) Reset

func (m *Locs) Reset()

func (*Locs) Size

func (m *Locs) Size() (n int)

func (*Locs) String

func (m *Locs) String() string

func (*Locs) Unmarshal

func (m *Locs) Unmarshal(dAtA []byte) error

type Log

type Log struct {
	Mid        int64     `json:"mid,omitempty"`
	IP         uint32    `json:"loginip"`
	Location   string    `json:"location"`
	LocationID int64     `json:"location_id,omitempty"`
	Time       time.Time `json:"timestamp,omitempty"`
	Type       int8      `json:"type,omitempty"`
}

Log define user login log.

type Message

type Message struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

Message is databus message.

type Msg

type Msg struct {
	Notify bool `json:"notify"`
	Log    *Log `json:"log"`
}

Msg is user login status msg.

type Often

type Often struct {
	Result bool `json:"result"`
}

Often is user often use ipaddr

type PWDlog

type PWDlog struct {
	Mid int64 `json:"mid"`
}

PWDlog is user change password log.

type Record

type Record struct {
	LocID int64 `json:"locid"`
	Count int64 `json:"count"`
}

Record user login record.

Jump to

Keyboard shortcuts

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