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: 6 Imported by: 0

Documentation

Overview

Package model is a generated protocol buffer package.

It is generated from these files:

exp.proto

It has these top-level messages:

Exp
Level

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Exp

type Exp struct {
	Uid  int64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"uid"`
	Uexp int64 `protobuf:"varint,2,opt,name=Uexp,proto3" json:"uexp"`
	Rexp int64 `protobuf:"varint,3,opt,name=Rexp,proto3" json:"rexp"`
}

func (*Exp) Descriptor

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

func (*Exp) GetRexp

func (m *Exp) GetRexp() int64

func (*Exp) GetUexp

func (m *Exp) GetUexp() int64

func (*Exp) GetUid

func (m *Exp) GetUid() int64

func (*Exp) Marshal

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

func (*Exp) MarshalTo

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

func (*Exp) ProtoMessage

func (*Exp) ProtoMessage()

func (*Exp) Reset

func (m *Exp) Reset()

func (*Exp) Size

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

func (*Exp) String

func (m *Exp) String() string

func (*Exp) Unmarshal

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

type Level

type Level struct {
	Uid    int64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"uid"`
	Uexp   int64 `protobuf:"varint,2,opt,name=Uexp,proto3" json:"uexp"`
	Rexp   int64 `protobuf:"varint,3,opt,name=Rexp,proto3" json:"rexp"`
	Ulevel int32 `protobuf:"varint,4,opt,name=Ulevel,proto3" json:"ulevel"`
	Rlevel int32 `protobuf:"varint,5,opt,name=Rlevel,proto3" json:"rlevel"`
	Color  int32 `protobuf:"varint,6,opt,name=Color,proto3" json:"color"`
	Unext  int64 `protobuf:"varint,7,opt,name=Unext,proto3" json:"unext"`
	Rnext  int64 `protobuf:"varint,8,opt,name=Rnext,proto3" json:"rnext"`
}

func FormatLevel

func FormatLevel(exp *Exp) (level *Level)

FormatLevel 计算等级

func (*Level) Descriptor

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

func (*Level) GetColor

func (m *Level) GetColor() int32

func (*Level) GetRexp

func (m *Level) GetRexp() int64

func (*Level) GetRlevel

func (m *Level) GetRlevel() int32

func (*Level) GetRnext

func (m *Level) GetRnext() int64

func (*Level) GetUexp

func (m *Level) GetUexp() int64

func (*Level) GetUid

func (m *Level) GetUid() int64

func (*Level) GetUlevel

func (m *Level) GetUlevel() int32

func (*Level) GetUnext

func (m *Level) GetUnext() int64

func (*Level) Marshal

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

func (*Level) MarshalTo

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

func (*Level) ProtoMessage

func (*Level) ProtoMessage()

func (*Level) Reset

func (m *Level) Reset()

func (*Level) Size

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

func (*Level) String

func (m *Level) String() string

func (*Level) Unmarshal

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

type Message

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

Message canal standary message

Jump to

Keyboard shortcuts

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