test

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_name = map[int32]string{
		0: "InternalServerError",
		1: "PermissionDenied",
		2: "NotFound",
	}
	Error_value = map[string]int32{
		"InternalServerError": 0,
		"PermissionDenied":    1,
		"NotFound":            2,
	}
)

Enum value maps for Error.

View Source
var File_test_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error added in v0.0.5

type Error int32
const (
	Error_InternalServerError Error = 0
	Error_PermissionDenied    Error = 1
	Error_NotFound            Error = 2
)

func (Error) Descriptor added in v0.0.5

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum added in v0.0.5

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated added in v0.0.5

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Error added in v0.0.5

func (x Error) Error() string

func (Error) Number added in v0.0.5

func (x Error) Number() protoreflect.EnumNumber

func (Error) String added in v0.0.5

func (x Error) String() string

func (Error) Type added in v0.0.5

func (Error) Type() protoreflect.EnumType

type TestTest

type TestTest struct {
	Id     int64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Public *string `protobuf:"bytes,3,opt,name=Public,proto3,oneof" json:"Public,omitempty"`
	// @gotags: db:"-" json:"id"
	PublicId string `protobuf:"bytes,5,opt,name=publicId,proto3" json:"publicId,omitempty"`
	// @gotags: db:"type"
	Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` // 'enum' | 'message'
	// @gotags: db:"description"
	Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
	// @gotags: db:"fields"
	ProjectId int64 `protobuf:"varint,11,opt,name=projectId,proto3" json:"projectId,omitempty"`
	// @gotags: db:"createTime"
	CreateTime *protox.Timestamp `protobuf:"bytes,12,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// @gotags: db:"updateTime"
	UpdateTime *protox.Timestamp `protobuf:"bytes,13,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*TestTest) Descriptor deprecated

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

Deprecated: Use TestTest.ProtoReflect.Descriptor instead.

func (*TestTest) FromJSON added in v0.0.5

func (x *TestTest) FromJSON(content []byte) error

func (*TestTest) GetCreateTime

func (x *TestTest) GetCreateTime() *protox.Timestamp

func (*TestTest) GetDescription

func (x *TestTest) GetDescription() string

func (*TestTest) GetId

func (x *TestTest) GetId() int64

func (*TestTest) GetName

func (x *TestTest) GetName() string

func (*TestTest) GetProjectId

func (x *TestTest) GetProjectId() int64

func (*TestTest) GetPublic

func (x *TestTest) GetPublic() string

func (*TestTest) GetPublicId

func (x *TestTest) GetPublicId() string

func (*TestTest) GetType

func (x *TestTest) GetType() string

func (*TestTest) GetUpdateTime

func (x *TestTest) GetUpdateTime() *protox.Timestamp

func (TestTest) JSON added in v0.0.5

func (x TestTest) JSON() ([]byte, error)

func (*TestTest) ProtoMessage

func (*TestTest) ProtoMessage()

func (*TestTest) ProtoReflect

func (x *TestTest) ProtoReflect() protoreflect.Message

func (*TestTest) Reset

func (x *TestTest) Reset()

func (*TestTest) Scan

func (data *TestTest) Scan(src any) error

func (*TestTest) String

func (x *TestTest) String() string

func (*TestTest) Table

func (*TestTest) Table() string

func (TestTest) Value

func (data TestTest) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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