admin

package
v0.0.0-...-e3b3a0b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_admin_admin_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// TODO , test recursive mode
	//
	//	user.User user = 3[(ryojerryyu.fieldmask.gen) = {
	//	    mode: "recursive"
	//	}];
	User      *user.User             `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Admin) Descriptor deprecated

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

Deprecated: Use Admin.ProtoReflect.Descriptor instead.

func (*Admin) GetCreatedAt

func (x *Admin) GetCreatedAt() *timestamppb.Timestamp

func (*Admin) GetId

func (x *Admin) GetId() string

func (*Admin) GetName

func (x *Admin) GetName() string

func (*Admin) GetUser

func (x *Admin) GetUser() *user.User

func (*Admin) PathBuilder

func (x *Admin) PathBuilder() IAdminPathBuilder

PathBuilder returns the field path for Admin

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) ProtoReflect

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

func (*Admin) Reset

func (x *Admin) Reset()

func (*Admin) String

func (x *Admin) String() string

type IAdminPathBuilder

type IAdminPathBuilder interface {
	String() string
	Id() fieldmask.IEndPathBuilder
	Name() fieldmask.IEndPathBuilder
	User() user.IUserPathBuilder
	CreatedAt() fieldmask.ITimestampPathBuilder
}

IAdminPathBuilder is the interface for the field path of Admin

func NewAdminPathBuilder

func NewAdminPathBuilder(fieldPath string) IAdminPathBuilder

NewAdminPathBuilder creates a new adminPathBuilder

Jump to

Keyboard shortcuts

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