admin

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AdminCategory_Status_name = map[int32]string{
		0: "PUBLISHED",
		1: "DRAFT",
	}
	AdminCategory_Status_value = map[string]int32{
		"PUBLISHED": 0,
		"DRAFT":     1,
	}
)

Enum value maps for AdminCategory_Status.

View Source
var (
	AdminCategoryEdit_Status_name = map[int32]string{
		0: "PUBLISHED",
		1: "DRAFT",
	}
	AdminCategoryEdit_Status_value = map[string]int32{
		"PUBLISHED": 0,
		"DRAFT":     1,
	}
)

Enum value maps for AdminCategoryEdit_Status.

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddPoem",
			Handler:    _Admin_AddPoem_Handler,
		},
		{
			MethodName: "EditPoem",
			Handler:    _Admin_EditPoem_Handler,
		},
		{
			MethodName: "DeletePoem",
			Handler:    _Admin_DeletePoem_Handler,
		},
		{
			MethodName: "AddCategory",
			Handler:    _Admin_AddCategory_Handler,
		},
		{
			MethodName: "EditCategory",
			Handler:    _Admin_EditCategory_Handler,
		},
		{
			MethodName: "DeleteCategory",
			Handler:    _Admin_DeleteCategory_Handler,
		},
		{
			MethodName: "AddDomain",
			Handler:    _Admin_AddDomain_Handler,
		},
		{
			MethodName: "EditDomain",
			Handler:    _Admin_EditDomain_Handler,
		},
		{
			MethodName: "GetDomain",
			Handler:    _Admin_GetDomain_Handler,
		},
		{
			MethodName: "DeleteDomain",
			Handler:    _Admin_DeleteDomain_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_admin_admin_proto protoreflect.FileDescriptor

Functions

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

Types

type AdminCategory added in v0.2.8

type AdminCategory struct {
	Name   string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Slug   string               `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Status AdminCategory_Status `protobuf:"varint,3,opt,name=status,proto3,enum=AdminCategory_Status" json:"status,omitempty"`
	UserId int64                `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminCategory) Descriptor deprecated added in v0.2.8

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

Deprecated: Use AdminCategory.ProtoReflect.Descriptor instead.

func (*AdminCategory) GetName added in v0.2.8

func (x *AdminCategory) GetName() string

func (*AdminCategory) GetSlug added in v0.2.8

func (x *AdminCategory) GetSlug() string

func (*AdminCategory) GetStatus added in v0.3.0

func (x *AdminCategory) GetStatus() AdminCategory_Status

func (*AdminCategory) GetUserId added in v0.5.5

func (x *AdminCategory) GetUserId() int64

func (*AdminCategory) ProtoMessage added in v0.2.8

func (*AdminCategory) ProtoMessage()

func (*AdminCategory) ProtoReflect added in v0.2.8

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

func (*AdminCategory) Reset added in v0.2.8

func (x *AdminCategory) Reset()

func (*AdminCategory) String added in v0.2.8

func (x *AdminCategory) String() string

type AdminCategoryEdit added in v0.5.7

type AdminCategoryEdit struct {
	Name       string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Slug       string                   `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Status     AdminCategoryEdit_Status `protobuf:"varint,3,opt,name=status,proto3,enum=AdminCategoryEdit_Status" json:"status,omitempty"`
	UserId     int64                    `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
	CategoryId int32                    `protobuf:"varint,5,opt,name=categoryId,proto3" json:"categoryId,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminCategoryEdit) Descriptor deprecated added in v0.5.7

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

Deprecated: Use AdminCategoryEdit.ProtoReflect.Descriptor instead.

func (*AdminCategoryEdit) GetCategoryId added in v0.5.7

func (x *AdminCategoryEdit) GetCategoryId() int32

func (*AdminCategoryEdit) GetName added in v0.5.7

func (x *AdminCategoryEdit) GetName() string

func (*AdminCategoryEdit) GetSlug added in v0.5.7

func (x *AdminCategoryEdit) GetSlug() string

func (*AdminCategoryEdit) GetStatus added in v0.5.7

func (*AdminCategoryEdit) GetUserId added in v0.5.7

func (x *AdminCategoryEdit) GetUserId() int64

func (*AdminCategoryEdit) ProtoMessage added in v0.5.7

func (*AdminCategoryEdit) ProtoMessage()

func (*AdminCategoryEdit) ProtoReflect added in v0.5.7

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

func (*AdminCategoryEdit) Reset added in v0.5.7

func (x *AdminCategoryEdit) Reset()

func (*AdminCategoryEdit) String added in v0.5.7

func (x *AdminCategoryEdit) String() string

type AdminCategoryEdit_Status added in v0.5.7

type AdminCategoryEdit_Status int32
const (
	AdminCategoryEdit_PUBLISHED AdminCategoryEdit_Status = 0
	AdminCategoryEdit_DRAFT     AdminCategoryEdit_Status = 1
)

func (AdminCategoryEdit_Status) Descriptor added in v0.5.7

func (AdminCategoryEdit_Status) Enum added in v0.5.7

func (AdminCategoryEdit_Status) EnumDescriptor deprecated added in v0.5.7

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

Deprecated: Use AdminCategoryEdit_Status.Descriptor instead.

func (AdminCategoryEdit_Status) Number added in v0.5.7

func (AdminCategoryEdit_Status) String added in v0.5.7

func (x AdminCategoryEdit_Status) String() string

func (AdminCategoryEdit_Status) Type added in v0.5.7

type AdminCategory_Status added in v0.3.0

type AdminCategory_Status int32
const (
	AdminCategory_PUBLISHED AdminCategory_Status = 0
	AdminCategory_DRAFT     AdminCategory_Status = 1
)

func (AdminCategory_Status) Descriptor added in v0.3.0

func (AdminCategory_Status) Enum added in v0.3.0

func (AdminCategory_Status) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use AdminCategory_Status.Descriptor instead.

func (AdminCategory_Status) Number added in v0.3.0

func (AdminCategory_Status) String added in v0.3.0

func (x AdminCategory_Status) String() string

func (AdminCategory_Status) Type added in v0.3.0

type AdminClient

type AdminClient interface {
	// Add new poem
	AddPoem(ctx context.Context, in *AdminPoem, opts ...grpc.CallOption) (*PoemResponse, error)
	// Edit poem
	EditPoem(ctx context.Context, in *AdminPoemEdit, opts ...grpc.CallOption) (*PoemEditResponse, error)
	// Delete poem
	DeletePoem(ctx context.Context, in *DeletePoemRequest, opts ...grpc.CallOption) (*DeletePoemResponse, error)
	// Add new category
	AddCategory(ctx context.Context, in *AdminCategory, opts ...grpc.CallOption) (*CategoryResponse, error)
	// Edit category
	EditCategory(ctx context.Context, in *AdminCategoryEdit, opts ...grpc.CallOption) (*CategoryEditResponse, error)
	// Delete category
	DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*DeleteCategoryResponse, error)
	AddDomain(ctx context.Context, in *AdminDomain, opts ...grpc.CallOption) (*DomainResponse, error)
	// Edit Domain
	EditDomain(ctx context.Context, in *AdminDomain, opts ...grpc.CallOption) (*DomainResponse, error)
	// Get domain
	GetDomain(ctx context.Context, in *GetAdminDomain, opts ...grpc.CallOption) (*DomainResponse, error)
	// Delete Domain
	DeleteDomain(ctx context.Context, in *AdminDomain, opts ...grpc.CallOption) (*DomainResponse, error)
}

AdminClient is the client API for Admin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminDomain added in v0.8.0

type AdminDomain struct {
	Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
	UserId int64  `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminDomain) Descriptor deprecated added in v0.8.0

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

Deprecated: Use AdminDomain.ProtoReflect.Descriptor instead.

func (*AdminDomain) GetDomain added in v0.8.0

func (x *AdminDomain) GetDomain() string

func (*AdminDomain) GetUserId added in v0.8.0

func (x *AdminDomain) GetUserId() int64

func (*AdminDomain) ProtoMessage added in v0.8.0

func (*AdminDomain) ProtoMessage()

func (*AdminDomain) ProtoReflect added in v0.8.0

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

func (*AdminDomain) Reset added in v0.8.0

func (x *AdminDomain) Reset()

func (*AdminDomain) String added in v0.8.0

func (x *AdminDomain) String() string

type AdminPoem added in v0.2.8

type AdminPoem struct {
	Title      string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Text       string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	CategoryId int32  `protobuf:"varint,3,opt,name=categoryId,proto3" json:"categoryId,omitempty"`
	UserId     int64  `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminPoem) Descriptor deprecated added in v0.2.8

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

Deprecated: Use AdminPoem.ProtoReflect.Descriptor instead.

func (*AdminPoem) GetCategoryId added in v0.3.0

func (x *AdminPoem) GetCategoryId() int32

func (*AdminPoem) GetText added in v0.2.8

func (x *AdminPoem) GetText() string

func (*AdminPoem) GetTitle added in v0.2.8

func (x *AdminPoem) GetTitle() string

func (*AdminPoem) GetUserId added in v0.5.5

func (x *AdminPoem) GetUserId() int64

func (*AdminPoem) ProtoMessage added in v0.2.8

func (*AdminPoem) ProtoMessage()

func (*AdminPoem) ProtoReflect added in v0.2.8

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

func (*AdminPoem) Reset added in v0.2.8

func (x *AdminPoem) Reset()

func (*AdminPoem) String added in v0.2.8

func (x *AdminPoem) String() string

type AdminPoemEdit added in v0.6.0

type AdminPoemEdit struct {
	Title      string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Text       string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	CategoryId int32  `protobuf:"varint,3,opt,name=categoryId,proto3" json:"categoryId,omitempty"`
	UserId     int64  `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
	PoemId     int32  `protobuf:"varint,5,opt,name=poemId,proto3" json:"poemId,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminPoemEdit) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AdminPoemEdit.ProtoReflect.Descriptor instead.

func (*AdminPoemEdit) GetCategoryId added in v0.6.0

func (x *AdminPoemEdit) GetCategoryId() int32

func (*AdminPoemEdit) GetPoemId added in v0.6.0

func (x *AdminPoemEdit) GetPoemId() int32

func (*AdminPoemEdit) GetText added in v0.6.0

func (x *AdminPoemEdit) GetText() string

func (*AdminPoemEdit) GetTitle added in v0.6.0

func (x *AdminPoemEdit) GetTitle() string

func (*AdminPoemEdit) GetUserId added in v0.6.0

func (x *AdminPoemEdit) GetUserId() int64

func (*AdminPoemEdit) ProtoMessage added in v0.6.0

func (*AdminPoemEdit) ProtoMessage()

func (*AdminPoemEdit) ProtoReflect added in v0.6.0

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

func (*AdminPoemEdit) Reset added in v0.6.0

func (x *AdminPoemEdit) Reset()

func (*AdminPoemEdit) String added in v0.6.0

func (x *AdminPoemEdit) String() string

type AdminServer

type AdminServer interface {
	// Add new poem
	AddPoem(context.Context, *AdminPoem) (*PoemResponse, error)
	// Edit poem
	EditPoem(context.Context, *AdminPoemEdit) (*PoemEditResponse, error)
	// Delete poem
	DeletePoem(context.Context, *DeletePoemRequest) (*DeletePoemResponse, error)
	// Add new category
	AddCategory(context.Context, *AdminCategory) (*CategoryResponse, error)
	// Edit category
	EditCategory(context.Context, *AdminCategoryEdit) (*CategoryEditResponse, error)
	// Delete category
	DeleteCategory(context.Context, *DeleteCategoryRequest) (*DeleteCategoryResponse, error)
	AddDomain(context.Context, *AdminDomain) (*DomainResponse, error)
	// Edit Domain
	EditDomain(context.Context, *AdminDomain) (*DomainResponse, error)
	// Get domain
	GetDomain(context.Context, *GetAdminDomain) (*DomainResponse, error)
	// Delete Domain
	DeleteDomain(context.Context, *AdminDomain) (*DomainResponse, error)
	// contains filtered or unexported methods
}

AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility

type CategoryEditResponse added in v0.5.7

type CategoryEditResponse struct {
	Success  bool               `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Category *AdminCategoryEdit `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*CategoryEditResponse) Descriptor deprecated added in v0.5.7

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

Deprecated: Use CategoryEditResponse.ProtoReflect.Descriptor instead.

func (*CategoryEditResponse) GetCategory added in v0.5.7

func (x *CategoryEditResponse) GetCategory() *AdminCategoryEdit

func (*CategoryEditResponse) GetSuccess added in v0.5.7

func (x *CategoryEditResponse) GetSuccess() bool

func (*CategoryEditResponse) ProtoMessage added in v0.5.7

func (*CategoryEditResponse) ProtoMessage()

func (*CategoryEditResponse) ProtoReflect added in v0.5.7

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

func (*CategoryEditResponse) Reset added in v0.5.7

func (x *CategoryEditResponse) Reset()

func (*CategoryEditResponse) String added in v0.5.7

func (x *CategoryEditResponse) String() string

type CategoryResponse

type CategoryResponse struct {
	Success  bool           `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Category *AdminCategory `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

The response message containing category object content.

func (*CategoryResponse) Descriptor deprecated

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

Deprecated: Use CategoryResponse.ProtoReflect.Descriptor instead.

func (*CategoryResponse) GetCategory

func (x *CategoryResponse) GetCategory() *AdminCategory

func (*CategoryResponse) GetSuccess

func (x *CategoryResponse) GetSuccess() bool

func (*CategoryResponse) ProtoMessage

func (*CategoryResponse) ProtoMessage()

func (*CategoryResponse) ProtoReflect

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

func (*CategoryResponse) Reset

func (x *CategoryResponse) Reset()

func (*CategoryResponse) String

func (x *CategoryResponse) String() string

type DeleteCategoryRequest added in v0.5.7

type DeleteCategoryRequest struct {
	CategoryId int32 `protobuf:"varint,1,opt,name=categoryId,proto3" json:"categoryId,omitempty"`
	UserId     int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCategoryRequest) Descriptor deprecated added in v0.5.7

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

Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteCategoryRequest) GetCategoryId added in v0.5.7

func (x *DeleteCategoryRequest) GetCategoryId() int32

func (*DeleteCategoryRequest) GetUserId added in v0.5.7

func (x *DeleteCategoryRequest) GetUserId() int64

func (*DeleteCategoryRequest) ProtoMessage added in v0.5.7

func (*DeleteCategoryRequest) ProtoMessage()

func (*DeleteCategoryRequest) ProtoReflect added in v0.5.7

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

func (*DeleteCategoryRequest) Reset added in v0.5.7

func (x *DeleteCategoryRequest) Reset()

func (*DeleteCategoryRequest) String added in v0.5.7

func (x *DeleteCategoryRequest) String() string

type DeleteCategoryResponse added in v0.5.7

type DeleteCategoryResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCategoryResponse) Descriptor deprecated added in v0.5.7

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

Deprecated: Use DeleteCategoryResponse.ProtoReflect.Descriptor instead.

func (*DeleteCategoryResponse) GetSuccess added in v0.5.7

func (x *DeleteCategoryResponse) GetSuccess() bool

func (*DeleteCategoryResponse) ProtoMessage added in v0.5.7

func (*DeleteCategoryResponse) ProtoMessage()

func (*DeleteCategoryResponse) ProtoReflect added in v0.5.7

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

func (*DeleteCategoryResponse) Reset added in v0.5.7

func (x *DeleteCategoryResponse) Reset()

func (*DeleteCategoryResponse) String added in v0.5.7

func (x *DeleteCategoryResponse) String() string

type DeletePoemRequest added in v0.6.0

type DeletePoemRequest struct {
	PoemId int32 `protobuf:"varint,1,opt,name=poemId,proto3" json:"poemId,omitempty"`
	UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePoemRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use DeletePoemRequest.ProtoReflect.Descriptor instead.

func (*DeletePoemRequest) GetPoemId added in v0.6.0

func (x *DeletePoemRequest) GetPoemId() int32

func (*DeletePoemRequest) GetUserId added in v0.6.0

func (x *DeletePoemRequest) GetUserId() int64

func (*DeletePoemRequest) ProtoMessage added in v0.6.0

func (*DeletePoemRequest) ProtoMessage()

func (*DeletePoemRequest) ProtoReflect added in v0.6.0

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

func (*DeletePoemRequest) Reset added in v0.6.0

func (x *DeletePoemRequest) Reset()

func (*DeletePoemRequest) String added in v0.6.0

func (x *DeletePoemRequest) String() string

type DeletePoemResponse added in v0.6.0

type DeletePoemResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePoemResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use DeletePoemResponse.ProtoReflect.Descriptor instead.

func (*DeletePoemResponse) GetSuccess added in v0.6.0

func (x *DeletePoemResponse) GetSuccess() bool

func (*DeletePoemResponse) ProtoMessage added in v0.6.0

func (*DeletePoemResponse) ProtoMessage()

func (*DeletePoemResponse) ProtoReflect added in v0.6.0

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

func (*DeletePoemResponse) Reset added in v0.6.0

func (x *DeletePoemResponse) Reset()

func (*DeletePoemResponse) String added in v0.6.0

func (x *DeletePoemResponse) String() string

type DomainResponse added in v0.8.0

type DomainResponse struct {
	Success bool         `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Domain  *AdminDomain `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*DomainResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use DomainResponse.ProtoReflect.Descriptor instead.

func (*DomainResponse) GetDomain added in v0.8.0

func (x *DomainResponse) GetDomain() *AdminDomain

func (*DomainResponse) GetSuccess added in v0.8.0

func (x *DomainResponse) GetSuccess() bool

func (*DomainResponse) ProtoMessage added in v0.8.0

func (*DomainResponse) ProtoMessage()

func (*DomainResponse) ProtoReflect added in v0.8.0

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

func (*DomainResponse) Reset added in v0.8.0

func (x *DomainResponse) Reset()

func (*DomainResponse) String added in v0.8.0

func (x *DomainResponse) String() string

type GetAdminDomain added in v0.9.0

type GetAdminDomain struct {
	UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAdminDomain) Descriptor deprecated added in v0.9.0

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

Deprecated: Use GetAdminDomain.ProtoReflect.Descriptor instead.

func (*GetAdminDomain) GetUserId added in v0.9.0

func (x *GetAdminDomain) GetUserId() int64

func (*GetAdminDomain) ProtoMessage added in v0.9.0

func (*GetAdminDomain) ProtoMessage()

func (*GetAdminDomain) ProtoReflect added in v0.9.0

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

func (*GetAdminDomain) Reset added in v0.9.0

func (x *GetAdminDomain) Reset()

func (*GetAdminDomain) String added in v0.9.0

func (x *GetAdminDomain) String() string

type PoemEditResponse added in v0.6.0

type PoemEditResponse struct {
	Success bool           `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Poem    *AdminPoemEdit `protobuf:"bytes,2,opt,name=poem,proto3" json:"poem,omitempty"`
	// contains filtered or unexported fields
}

func (*PoemEditResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use PoemEditResponse.ProtoReflect.Descriptor instead.

func (*PoemEditResponse) GetPoem added in v0.6.0

func (x *PoemEditResponse) GetPoem() *AdminPoemEdit

func (*PoemEditResponse) GetSuccess added in v0.6.0

func (x *PoemEditResponse) GetSuccess() bool

func (*PoemEditResponse) ProtoMessage added in v0.6.0

func (*PoemEditResponse) ProtoMessage()

func (*PoemEditResponse) ProtoReflect added in v0.6.0

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

func (*PoemEditResponse) Reset added in v0.6.0

func (x *PoemEditResponse) Reset()

func (*PoemEditResponse) String added in v0.6.0

func (x *PoemEditResponse) String() string

type PoemResponse

type PoemResponse struct {
	Success bool       `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Poem    *AdminPoem `protobuf:"bytes,2,opt,name=poem,proto3" json:"poem,omitempty"`
	// contains filtered or unexported fields
}

The response message containing poem object content.

func (*PoemResponse) Descriptor deprecated

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

Deprecated: Use PoemResponse.ProtoReflect.Descriptor instead.

func (*PoemResponse) GetPoem

func (x *PoemResponse) GetPoem() *AdminPoem

func (*PoemResponse) GetSuccess

func (x *PoemResponse) GetSuccess() bool

func (*PoemResponse) ProtoMessage

func (*PoemResponse) ProtoMessage()

func (*PoemResponse) ProtoReflect

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

func (*PoemResponse) Reset

func (x *PoemResponse) Reset()

func (*PoemResponse) String

func (x *PoemResponse) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminServer) AddCategory

func (UnimplementedAdminServer) AddDomain added in v0.8.0

func (UnimplementedAdminServer) AddPoem

func (UnimplementedAdminServer) DeleteCategory added in v0.5.7

func (UnimplementedAdminServer) DeleteDomain added in v0.8.0

func (UnimplementedAdminServer) DeletePoem added in v0.6.0

func (UnimplementedAdminServer) EditCategory added in v0.5.7

func (UnimplementedAdminServer) EditDomain added in v0.8.0

func (UnimplementedAdminServer) EditPoem added in v0.6.0

func (UnimplementedAdminServer) GetDomain added in v0.9.0

type UnsafeAdminServer

type UnsafeAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.

Jump to

Keyboard shortcuts

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