proto

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Generated by github.com/bobwong89757/protoplus DO NOT EDIT!

Index

Constants

This section is empty.

Variables

View Source
var (
	Handle_Memsd_AuthREQ        = func(ev cellnet.Event) { panic("'AuthREQ' not handled") }
	Handle_Memsd_ClearKeyREQ    = func(ev cellnet.Event) { panic("'ClearKeyREQ' not handled") }
	Handle_Memsd_ClearSvcREQ    = func(ev cellnet.Event) { panic("'ClearSvcREQ' not handled") }
	Handle_Memsd_DeleteValueREQ = func(ev cellnet.Event) { panic("'DeleteValueREQ' not handled") }
	Handle_Memsd_GetValueREQ    = func(ev cellnet.Event) { panic("'GetValueREQ' not handled") }
	Handle_Memsd_SetValueREQ    = func(ev cellnet.Event) { panic("'SetValueREQ' not handled") }
	Handle_Memsd_Default        func(ev cellnet.Event)
)

memsd

View Source
var (
	ResultCodeMapperValueByName = map[string]int32{
		"Result_OK":          0,
		"Result_NotExists":   1,
		"Result_AuthRequire": 2,
	}

	ResultCodeMapperNameByValue = map[int32]string{
		0: "Result_OK",
		1: "Result_NotExists",
		2: "Result_AuthRequire",
	}
)

Functions

func GetMessageHandler

func GetMessageHandler(svcName string) cellnet.EventCallback

Types

type AuthACK

type AuthACK struct {
	Token string
}

func (*AuthACK) Marshal

func (self *AuthACK) Marshal(buffer *proto.Buffer) error

func (*AuthACK) Size

func (self *AuthACK) Size() (ret int)

func (*AuthACK) String

func (self *AuthACK) String() string

func (*AuthACK) Unmarshal

func (self *AuthACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type AuthREQ

type AuthREQ struct {
	Token string
}

func (*AuthREQ) Marshal

func (self *AuthREQ) Marshal(buffer *proto.Buffer) error

func (*AuthREQ) Size

func (self *AuthREQ) Size() (ret int)

func (*AuthREQ) String

func (self *AuthREQ) String() string

func (*AuthREQ) Unmarshal

func (self *AuthREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ClearKeyACK

type ClearKeyACK struct {
	Code ResultCode
}

func (*ClearKeyACK) Marshal

func (self *ClearKeyACK) Marshal(buffer *proto.Buffer) error

func (*ClearKeyACK) Size

func (self *ClearKeyACK) Size() (ret int)

func (*ClearKeyACK) String

func (self *ClearKeyACK) String() string

func (*ClearKeyACK) Unmarshal

func (self *ClearKeyACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ClearKeyREQ

type ClearKeyREQ struct {
}

func (*ClearKeyREQ) Marshal

func (self *ClearKeyREQ) Marshal(buffer *proto.Buffer) error

func (*ClearKeyREQ) Size

func (self *ClearKeyREQ) Size() (ret int)

func (*ClearKeyREQ) String

func (self *ClearKeyREQ) String() string

func (*ClearKeyREQ) Unmarshal

func (self *ClearKeyREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ClearSvcACK

type ClearSvcACK struct {
	Code ResultCode
}

func (*ClearSvcACK) Marshal

func (self *ClearSvcACK) Marshal(buffer *proto.Buffer) error

func (*ClearSvcACK) Size

func (self *ClearSvcACK) Size() (ret int)

func (*ClearSvcACK) String

func (self *ClearSvcACK) String() string

func (*ClearSvcACK) Unmarshal

func (self *ClearSvcACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ClearSvcREQ

type ClearSvcREQ struct {
}

func (*ClearSvcREQ) Marshal

func (self *ClearSvcREQ) Marshal(buffer *proto.Buffer) error

func (*ClearSvcREQ) Size

func (self *ClearSvcREQ) Size() (ret int)

func (*ClearSvcREQ) String

func (self *ClearSvcREQ) String() string

func (*ClearSvcREQ) Unmarshal

func (self *ClearSvcREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type DeleteValueACK

type DeleteValueACK struct {
	Code ResultCode
	Key  string
}

func (*DeleteValueACK) Marshal

func (self *DeleteValueACK) Marshal(buffer *proto.Buffer) error

func (*DeleteValueACK) Size

func (self *DeleteValueACK) Size() (ret int)

func (*DeleteValueACK) String

func (self *DeleteValueACK) String() string

func (*DeleteValueACK) Unmarshal

func (self *DeleteValueACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type DeleteValueREQ

type DeleteValueREQ struct {
	Key string
}

func (*DeleteValueREQ) Marshal

func (self *DeleteValueREQ) Marshal(buffer *proto.Buffer) error

func (*DeleteValueREQ) Size

func (self *DeleteValueREQ) Size() (ret int)

func (*DeleteValueREQ) String

func (self *DeleteValueREQ) String() string

func (*DeleteValueREQ) Unmarshal

func (self *DeleteValueREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type GetValueACK

type GetValueACK struct {
	Code  ResultCode
	Key   string
	Value []byte
}

func (*GetValueACK) Marshal

func (self *GetValueACK) Marshal(buffer *proto.Buffer) error

func (*GetValueACK) Size

func (self *GetValueACK) Size() (ret int)

func (*GetValueACK) String

func (self *GetValueACK) String() string

func (*GetValueACK) Unmarshal

func (self *GetValueACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type GetValueREQ

type GetValueREQ struct {
	Key string
}

func (*GetValueREQ) Marshal

func (self *GetValueREQ) Marshal(buffer *proto.Buffer) error

func (*GetValueREQ) Size

func (self *GetValueREQ) Size() (ret int)

func (*GetValueREQ) String

func (self *GetValueREQ) String() string

func (*GetValueREQ) Unmarshal

func (self *GetValueREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ResultCode

type ResultCode int32
const (
	ResultCode_Result_OK          ResultCode = 0
	ResultCode_Result_NotExists   ResultCode = 1
	ResultCode_Result_AuthRequire ResultCode = 2
)

func (ResultCode) String

func (self ResultCode) String() string

type SetValueACK

type SetValueACK struct {
	Code ResultCode
}

func (*SetValueACK) Marshal

func (self *SetValueACK) Marshal(buffer *proto.Buffer) error

func (*SetValueACK) Size

func (self *SetValueACK) Size() (ret int)

func (*SetValueACK) String

func (self *SetValueACK) String() string

func (*SetValueACK) Unmarshal

func (self *SetValueACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type SetValueREQ

type SetValueREQ struct {
	Key     string
	Value   []byte
	SvcName string
}

func (*SetValueREQ) Marshal

func (self *SetValueREQ) Marshal(buffer *proto.Buffer) error

func (*SetValueREQ) Size

func (self *SetValueREQ) Size() (ret int)

func (*SetValueREQ) String

func (self *SetValueREQ) String() string

func (*SetValueREQ) Unmarshal

func (self *SetValueREQ) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ValueChangeNotifyACK

type ValueChangeNotifyACK struct {
	Key     string
	Value   []byte
	SvcName string
}

func (*ValueChangeNotifyACK) Marshal

func (self *ValueChangeNotifyACK) Marshal(buffer *proto.Buffer) error

func (*ValueChangeNotifyACK) Size

func (self *ValueChangeNotifyACK) Size() (ret int)

func (*ValueChangeNotifyACK) String

func (self *ValueChangeNotifyACK) String() string

func (*ValueChangeNotifyACK) Unmarshal

func (self *ValueChangeNotifyACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type ValueDeleteNotifyACK

type ValueDeleteNotifyACK struct {
	Key     string
	SvcName string
}

func (*ValueDeleteNotifyACK) Marshal

func (self *ValueDeleteNotifyACK) Marshal(buffer *proto.Buffer) error

func (*ValueDeleteNotifyACK) Size

func (self *ValueDeleteNotifyACK) Size() (ret int)

func (*ValueDeleteNotifyACK) String

func (self *ValueDeleteNotifyACK) String() string

func (*ValueDeleteNotifyACK) Unmarshal

func (self *ValueDeleteNotifyACK) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

Jump to

Keyboard shortcuts

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