admin

package
v0.0.0-...-032cc0f Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const OperationLayoutAdminCreateBot = "/api.helloworld.admin.LayoutAdmin/CreateBot"
View Source
const OperationLayoutAdminDeleteBot = "/api.helloworld.admin.LayoutAdmin/DeleteBot"
View Source
const OperationLayoutAdminGetBot = "/api.helloworld.admin.LayoutAdmin/GetBot"
View Source
const OperationLayoutAdminListBot = "/api.helloworld.admin.LayoutAdmin/ListBot"
View Source
const OperationLayoutAdminPageBot = "/api.helloworld.admin.LayoutAdmin/PageBot"
View Source
const OperationLayoutAdminUpdateBot = "/api.helloworld.admin.LayoutAdmin/UpdateBot"

Variables

View Source
var File_api_helloworld_admin_admin_proto protoreflect.FileDescriptor
View Source
var LayoutAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.helloworld.admin.LayoutAdmin",
	HandlerType: (*LayoutAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PageBot",
			Handler:    _LayoutAdmin_PageBot_Handler,
		},
		{
			MethodName: "ListBot",
			Handler:    _LayoutAdmin_ListBot_Handler,
		},
		{
			MethodName: "GetBot",
			Handler:    _LayoutAdmin_GetBot_Handler,
		},
		{
			MethodName: "CreateBot",
			Handler:    _LayoutAdmin_CreateBot_Handler,
		},
		{
			MethodName: "UpdateBot",
			Handler:    _LayoutAdmin_UpdateBot_Handler,
		},
		{
			MethodName: "DeleteBot",
			Handler:    _LayoutAdmin_DeleteBot_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/helloworld/admin/admin.proto",
}

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

Functions

func RegisterLayoutAdminHTTPServer

func RegisterLayoutAdminHTTPServer(s *http.Server, srv LayoutAdminHTTPServer)

func RegisterLayoutAdminServer

func RegisterLayoutAdminServer(s grpc.ServiceRegistrar, srv LayoutAdminServer)

Types

type CreateBotReply

type CreateBotReply struct {
	// contains filtered or unexported fields
}

func (*CreateBotReply) Descriptor deprecated

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

Deprecated: Use CreateBotReply.ProtoReflect.Descriptor instead.

func (*CreateBotReply) ProtoMessage

func (*CreateBotReply) ProtoMessage()

func (*CreateBotReply) ProtoReflect

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

func (*CreateBotReply) Reset

func (x *CreateBotReply) Reset()

func (*CreateBotReply) String

func (x *CreateBotReply) String() string

func (*CreateBotReply) Validate

func (m *CreateBotReply) Validate() error

Validate checks the field values on CreateBotReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateBotReply) ValidateAll

func (m *CreateBotReply) ValidateAll() error

ValidateAll checks the field values on CreateBotReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateBotReplyMultiError, or nil if none found.

type CreateBotReplyMultiError

type CreateBotReplyMultiError []error

CreateBotReplyMultiError is an error wrapping multiple validation errors returned by CreateBotReply.ValidateAll() if the designated constraints aren't met.

func (CreateBotReplyMultiError) AllErrors

func (m CreateBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateBotReplyMultiError) Error

func (m CreateBotReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateBotReplyValidationError

type CreateBotReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateBotReplyValidationError is the validation error returned by CreateBotReply.Validate if the designated constraints aren't met.

func (CreateBotReplyValidationError) Cause

Cause function returns cause value.

func (CreateBotReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateBotReplyValidationError) ErrorName

func (e CreateBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateBotReplyValidationError) Field

Field function returns field value.

func (CreateBotReplyValidationError) Key

Key function returns key value.

func (CreateBotReplyValidationError) Reason

Reason function returns reason value.

type CreateBotRequest

type CreateBotRequest struct {
	Source         helloworld.BotSource `protobuf:"varint,2,opt,name=source,proto3,enum=api.helloworld.BotSource" json:"source,omitempty"`
	BotId          string               `protobuf:"bytes,3,opt,name=botId,proto3" json:"botId,omitempty"`
	SubId          string               `protobuf:"bytes,4,opt,name=subId,proto3" json:"subId,omitempty"`
	DriverType     string               `protobuf:"bytes,5,opt,name=driverType,proto3" json:"driverType,omitempty"`
	NotifyTemplate string               `protobuf:"bytes,6,opt,name=notifyTemplate,proto3" json:"notifyTemplate,omitempty"`
	TemplateId     uint64               `protobuf:"varint,7,opt,name=templateId,proto3" json:"templateId,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBotRequest) Descriptor deprecated

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

Deprecated: Use CreateBotRequest.ProtoReflect.Descriptor instead.

func (*CreateBotRequest) GetBotId

func (x *CreateBotRequest) GetBotId() string

func (*CreateBotRequest) GetDriverType

func (x *CreateBotRequest) GetDriverType() string

func (*CreateBotRequest) GetNotifyTemplate

func (x *CreateBotRequest) GetNotifyTemplate() string

func (*CreateBotRequest) GetSource

func (x *CreateBotRequest) GetSource() helloworld.BotSource

func (*CreateBotRequest) GetSubId

func (x *CreateBotRequest) GetSubId() string

func (*CreateBotRequest) GetTemplateId

func (x *CreateBotRequest) GetTemplateId() uint64

func (*CreateBotRequest) ProtoMessage

func (*CreateBotRequest) ProtoMessage()

func (*CreateBotRequest) ProtoReflect

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

func (*CreateBotRequest) Reset

func (x *CreateBotRequest) Reset()

func (*CreateBotRequest) String

func (x *CreateBotRequest) String() string

func (*CreateBotRequest) Validate

func (m *CreateBotRequest) Validate() error

Validate checks the field values on CreateBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateBotRequest) ValidateAll

func (m *CreateBotRequest) ValidateAll() error

ValidateAll checks the field values on CreateBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateBotRequestMultiError, or nil if none found.

type CreateBotRequestMultiError

type CreateBotRequestMultiError []error

CreateBotRequestMultiError is an error wrapping multiple validation errors returned by CreateBotRequest.ValidateAll() if the designated constraints aren't met.

func (CreateBotRequestMultiError) AllErrors

func (m CreateBotRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateBotRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateBotRequestValidationError

type CreateBotRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateBotRequestValidationError is the validation error returned by CreateBotRequest.Validate if the designated constraints aren't met.

func (CreateBotRequestValidationError) Cause

Cause function returns cause value.

func (CreateBotRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateBotRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateBotRequestValidationError) Field

Field function returns field value.

func (CreateBotRequestValidationError) Key

Key function returns key value.

func (CreateBotRequestValidationError) Reason

Reason function returns reason value.

type DeleteBotReply

type DeleteBotReply struct {
	// contains filtered or unexported fields
}

func (*DeleteBotReply) Descriptor deprecated

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

Deprecated: Use DeleteBotReply.ProtoReflect.Descriptor instead.

func (*DeleteBotReply) ProtoMessage

func (*DeleteBotReply) ProtoMessage()

func (*DeleteBotReply) ProtoReflect

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

func (*DeleteBotReply) Reset

func (x *DeleteBotReply) Reset()

func (*DeleteBotReply) String

func (x *DeleteBotReply) String() string

func (*DeleteBotReply) Validate

func (m *DeleteBotReply) Validate() error

Validate checks the field values on DeleteBotReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteBotReply) ValidateAll

func (m *DeleteBotReply) ValidateAll() error

ValidateAll checks the field values on DeleteBotReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteBotReplyMultiError, or nil if none found.

type DeleteBotReplyMultiError

type DeleteBotReplyMultiError []error

DeleteBotReplyMultiError is an error wrapping multiple validation errors returned by DeleteBotReply.ValidateAll() if the designated constraints aren't met.

func (DeleteBotReplyMultiError) AllErrors

func (m DeleteBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteBotReplyMultiError) Error

func (m DeleteBotReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteBotReplyValidationError

type DeleteBotReplyValidationError struct {
	// contains filtered or unexported fields
}

DeleteBotReplyValidationError is the validation error returned by DeleteBotReply.Validate if the designated constraints aren't met.

func (DeleteBotReplyValidationError) Cause

Cause function returns cause value.

func (DeleteBotReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteBotReplyValidationError) ErrorName

func (e DeleteBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteBotReplyValidationError) Field

Field function returns field value.

func (DeleteBotReplyValidationError) Key

Key function returns key value.

func (DeleteBotReplyValidationError) Reason

Reason function returns reason value.

type DeleteBotRequest

type DeleteBotRequest struct {
	Ids string `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBotRequest) Descriptor deprecated

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

Deprecated: Use DeleteBotRequest.ProtoReflect.Descriptor instead.

func (*DeleteBotRequest) GetIds

func (x *DeleteBotRequest) GetIds() string

func (*DeleteBotRequest) ProtoMessage

func (*DeleteBotRequest) ProtoMessage()

func (*DeleteBotRequest) ProtoReflect

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

func (*DeleteBotRequest) Reset

func (x *DeleteBotRequest) Reset()

func (*DeleteBotRequest) String

func (x *DeleteBotRequest) String() string

func (*DeleteBotRequest) Validate

func (m *DeleteBotRequest) Validate() error

Validate checks the field values on DeleteBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteBotRequest) ValidateAll

func (m *DeleteBotRequest) ValidateAll() error

ValidateAll checks the field values on DeleteBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteBotRequestMultiError, or nil if none found.

type DeleteBotRequestMultiError

type DeleteBotRequestMultiError []error

DeleteBotRequestMultiError is an error wrapping multiple validation errors returned by DeleteBotRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteBotRequestMultiError) AllErrors

func (m DeleteBotRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteBotRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteBotRequestValidationError

type DeleteBotRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteBotRequestValidationError is the validation error returned by DeleteBotRequest.Validate if the designated constraints aren't met.

func (DeleteBotRequestValidationError) Cause

Cause function returns cause value.

func (DeleteBotRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteBotRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteBotRequestValidationError) Field

Field function returns field value.

func (DeleteBotRequestValidationError) Key

Key function returns key value.

func (DeleteBotRequestValidationError) Reason

Reason function returns reason value.

type GetBotReply

type GetBotReply struct {
	Data *helloworld.Bot `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBotReply) Descriptor deprecated

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

Deprecated: Use GetBotReply.ProtoReflect.Descriptor instead.

func (*GetBotReply) GetData

func (x *GetBotReply) GetData() *helloworld.Bot

func (*GetBotReply) ProtoMessage

func (*GetBotReply) ProtoMessage()

func (*GetBotReply) ProtoReflect

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

func (*GetBotReply) Reset

func (x *GetBotReply) Reset()

func (*GetBotReply) String

func (x *GetBotReply) String() string

func (*GetBotReply) Validate

func (m *GetBotReply) Validate() error

Validate checks the field values on GetBotReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetBotReply) ValidateAll

func (m *GetBotReply) ValidateAll() error

ValidateAll checks the field values on GetBotReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBotReplyMultiError, or nil if none found.

type GetBotReplyMultiError

type GetBotReplyMultiError []error

GetBotReplyMultiError is an error wrapping multiple validation errors returned by GetBotReply.ValidateAll() if the designated constraints aren't met.

func (GetBotReplyMultiError) AllErrors

func (m GetBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetBotReplyMultiError) Error

func (m GetBotReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetBotReplyValidationError

type GetBotReplyValidationError struct {
	// contains filtered or unexported fields
}

GetBotReplyValidationError is the validation error returned by GetBotReply.Validate if the designated constraints aren't met.

func (GetBotReplyValidationError) Cause

Cause function returns cause value.

func (GetBotReplyValidationError) Error

Error satisfies the builtin error interface

func (GetBotReplyValidationError) ErrorName

func (e GetBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetBotReplyValidationError) Field

Field function returns field value.

func (GetBotReplyValidationError) Key

Key function returns key value.

func (GetBotReplyValidationError) Reason

Reason function returns reason value.

type GetBotRequest

type GetBotRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBotRequest) Descriptor deprecated

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

Deprecated: Use GetBotRequest.ProtoReflect.Descriptor instead.

func (*GetBotRequest) GetId

func (x *GetBotRequest) GetId() uint64

func (*GetBotRequest) ProtoMessage

func (*GetBotRequest) ProtoMessage()

func (*GetBotRequest) ProtoReflect

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

func (*GetBotRequest) Reset

func (x *GetBotRequest) Reset()

func (*GetBotRequest) String

func (x *GetBotRequest) String() string

func (*GetBotRequest) Validate

func (m *GetBotRequest) Validate() error

Validate checks the field values on GetBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetBotRequest) ValidateAll

func (m *GetBotRequest) ValidateAll() error

ValidateAll checks the field values on GetBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBotRequestMultiError, or nil if none found.

type GetBotRequestMultiError

type GetBotRequestMultiError []error

GetBotRequestMultiError is an error wrapping multiple validation errors returned by GetBotRequest.ValidateAll() if the designated constraints aren't met.

func (GetBotRequestMultiError) AllErrors

func (m GetBotRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetBotRequestMultiError) Error

func (m GetBotRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetBotRequestValidationError

type GetBotRequestValidationError struct {
	// contains filtered or unexported fields
}

GetBotRequestValidationError is the validation error returned by GetBotRequest.Validate if the designated constraints aren't met.

func (GetBotRequestValidationError) Cause

Cause function returns cause value.

func (GetBotRequestValidationError) Error

Error satisfies the builtin error interface

func (GetBotRequestValidationError) ErrorName

func (e GetBotRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetBotRequestValidationError) Field

Field function returns field value.

func (GetBotRequestValidationError) Key

Key function returns key value.

func (GetBotRequestValidationError) Reason

Reason function returns reason value.

type LayoutAdminClient

type LayoutAdminClient interface {
	PageBot(ctx context.Context, in *PageBotRequest, opts ...grpc.CallOption) (*PageBotReply, error)
	ListBot(ctx context.Context, in *ListBotRequest, opts ...grpc.CallOption) (*ListBotReply, error)
	GetBot(ctx context.Context, in *GetBotRequest, opts ...grpc.CallOption) (*GetBotReply, error)
	CreateBot(ctx context.Context, in *CreateBotRequest, opts ...grpc.CallOption) (*CreateBotReply, error)
	UpdateBot(ctx context.Context, in *UpdateBotRequest, opts ...grpc.CallOption) (*UpdateBotReply, error)
	DeleteBot(ctx context.Context, in *DeleteBotRequest, opts ...grpc.CallOption) (*DeleteBotReply, error)
}

LayoutAdminClient is the client API for LayoutAdmin 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.

type LayoutAdminHTTPClient

type LayoutAdminHTTPClient interface {
	CreateBot(ctx context.Context, req *CreateBotRequest, opts ...http.CallOption) (rsp *CreateBotReply, err error)
	DeleteBot(ctx context.Context, req *DeleteBotRequest, opts ...http.CallOption) (rsp *DeleteBotReply, err error)
	GetBot(ctx context.Context, req *GetBotRequest, opts ...http.CallOption) (rsp *GetBotReply, err error)
	ListBot(ctx context.Context, req *ListBotRequest, opts ...http.CallOption) (rsp *ListBotReply, err error)
	PageBot(ctx context.Context, req *PageBotRequest, opts ...http.CallOption) (rsp *PageBotReply, err error)
	UpdateBot(ctx context.Context, req *UpdateBotRequest, opts ...http.CallOption) (rsp *UpdateBotReply, err error)
}

func NewLayoutAdminHTTPClient

func NewLayoutAdminHTTPClient(client *http.Client) LayoutAdminHTTPClient

type LayoutAdminHTTPClientImpl

type LayoutAdminHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*LayoutAdminHTTPClientImpl) CreateBot

func (*LayoutAdminHTTPClientImpl) DeleteBot

func (*LayoutAdminHTTPClientImpl) GetBot

func (*LayoutAdminHTTPClientImpl) ListBot

func (*LayoutAdminHTTPClientImpl) PageBot

func (*LayoutAdminHTTPClientImpl) UpdateBot

type LayoutAdminServer

type LayoutAdminServer interface {
	PageBot(context.Context, *PageBotRequest) (*PageBotReply, error)
	ListBot(context.Context, *ListBotRequest) (*ListBotReply, error)
	GetBot(context.Context, *GetBotRequest) (*GetBotReply, error)
	CreateBot(context.Context, *CreateBotRequest) (*CreateBotReply, error)
	UpdateBot(context.Context, *UpdateBotRequest) (*UpdateBotReply, error)
	DeleteBot(context.Context, *DeleteBotRequest) (*DeleteBotReply, error)
	// contains filtered or unexported methods
}

LayoutAdminServer is the server API for LayoutAdmin service. All implementations must embed UnimplementedLayoutAdminServer for forward compatibility

type ListBotReply

type ListBotReply struct {
	Data []*helloworld.Bot `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBotReply) Descriptor deprecated

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

Deprecated: Use ListBotReply.ProtoReflect.Descriptor instead.

func (*ListBotReply) GetData

func (x *ListBotReply) GetData() []*helloworld.Bot

func (*ListBotReply) ProtoMessage

func (*ListBotReply) ProtoMessage()

func (*ListBotReply) ProtoReflect

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

func (*ListBotReply) Reset

func (x *ListBotReply) Reset()

func (*ListBotReply) String

func (x *ListBotReply) String() string

func (*ListBotReply) Validate

func (m *ListBotReply) Validate() error

Validate checks the field values on ListBotReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListBotReply) ValidateAll

func (m *ListBotReply) ValidateAll() error

ValidateAll checks the field values on ListBotReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListBotReplyMultiError, or nil if none found.

type ListBotReplyMultiError

type ListBotReplyMultiError []error

ListBotReplyMultiError is an error wrapping multiple validation errors returned by ListBotReply.ValidateAll() if the designated constraints aren't met.

func (ListBotReplyMultiError) AllErrors

func (m ListBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListBotReplyMultiError) Error

func (m ListBotReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListBotReplyValidationError

type ListBotReplyValidationError struct {
	// contains filtered or unexported fields
}

ListBotReplyValidationError is the validation error returned by ListBotReply.Validate if the designated constraints aren't met.

func (ListBotReplyValidationError) Cause

Cause function returns cause value.

func (ListBotReplyValidationError) Error

Error satisfies the builtin error interface

func (ListBotReplyValidationError) ErrorName

func (e ListBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListBotReplyValidationError) Field

Field function returns field value.

func (ListBotReplyValidationError) Key

Key function returns key value.

func (ListBotReplyValidationError) Reason

Reason function returns reason value.

type ListBotRequest

type ListBotRequest struct {
	ChiainId string `protobuf:"bytes,1,opt,name=chiainId,proto3" json:"chiainId,omitempty"`
	Status   int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBotRequest) Descriptor deprecated

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

Deprecated: Use ListBotRequest.ProtoReflect.Descriptor instead.

func (*ListBotRequest) GetChiainId

func (x *ListBotRequest) GetChiainId() string

func (*ListBotRequest) GetStatus

func (x *ListBotRequest) GetStatus() int32

func (*ListBotRequest) ProtoMessage

func (*ListBotRequest) ProtoMessage()

func (*ListBotRequest) ProtoReflect

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

func (*ListBotRequest) Reset

func (x *ListBotRequest) Reset()

func (*ListBotRequest) String

func (x *ListBotRequest) String() string

func (*ListBotRequest) Validate

func (m *ListBotRequest) Validate() error

Validate checks the field values on ListBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListBotRequest) ValidateAll

func (m *ListBotRequest) ValidateAll() error

ValidateAll checks the field values on ListBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListBotRequestMultiError, or nil if none found.

type ListBotRequestMultiError

type ListBotRequestMultiError []error

ListBotRequestMultiError is an error wrapping multiple validation errors returned by ListBotRequest.ValidateAll() if the designated constraints aren't met.

func (ListBotRequestMultiError) AllErrors

func (m ListBotRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListBotRequestMultiError) Error

func (m ListBotRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListBotRequestValidationError

type ListBotRequestValidationError struct {
	// contains filtered or unexported fields
}

ListBotRequestValidationError is the validation error returned by ListBotRequest.Validate if the designated constraints aren't met.

func (ListBotRequestValidationError) Cause

Cause function returns cause value.

func (ListBotRequestValidationError) Error

Error satisfies the builtin error interface

func (ListBotRequestValidationError) ErrorName

func (e ListBotRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListBotRequestValidationError) Field

Field function returns field value.

func (ListBotRequestValidationError) Key

Key function returns key value.

func (ListBotRequestValidationError) Reason

Reason function returns reason value.

type PageBotReply

type PageBotReply struct {
	Total int32             `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*helloworld.Bot `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PageBotReply) Descriptor deprecated

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

Deprecated: Use PageBotReply.ProtoReflect.Descriptor instead.

func (*PageBotReply) GetData

func (x *PageBotReply) GetData() []*helloworld.Bot

func (*PageBotReply) GetTotal

func (x *PageBotReply) GetTotal() int32

func (*PageBotReply) ProtoMessage

func (*PageBotReply) ProtoMessage()

func (*PageBotReply) ProtoReflect

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

func (*PageBotReply) Reset

func (x *PageBotReply) Reset()

func (*PageBotReply) String

func (x *PageBotReply) String() string

func (*PageBotReply) Validate

func (m *PageBotReply) Validate() error

Validate checks the field values on PageBotReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PageBotReply) ValidateAll

func (m *PageBotReply) ValidateAll() error

ValidateAll checks the field values on PageBotReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageBotReplyMultiError, or nil if none found.

type PageBotReplyMultiError

type PageBotReplyMultiError []error

PageBotReplyMultiError is an error wrapping multiple validation errors returned by PageBotReply.ValidateAll() if the designated constraints aren't met.

func (PageBotReplyMultiError) AllErrors

func (m PageBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageBotReplyMultiError) Error

func (m PageBotReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PageBotReplyValidationError

type PageBotReplyValidationError struct {
	// contains filtered or unexported fields
}

PageBotReplyValidationError is the validation error returned by PageBotReply.Validate if the designated constraints aren't met.

func (PageBotReplyValidationError) Cause

Cause function returns cause value.

func (PageBotReplyValidationError) Error

Error satisfies the builtin error interface

func (PageBotReplyValidationError) ErrorName

func (e PageBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageBotReplyValidationError) Field

Field function returns field value.

func (PageBotReplyValidationError) Key

Key function returns key value.

func (PageBotReplyValidationError) Reason

Reason function returns reason value.

type PageBotRequest

type PageBotRequest struct {
	PageSize  int32 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	PageIndex int32 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*PageBotRequest) Descriptor deprecated

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

Deprecated: Use PageBotRequest.ProtoReflect.Descriptor instead.

func (*PageBotRequest) GetPageIndex

func (x *PageBotRequest) GetPageIndex() int32

func (*PageBotRequest) GetPageSize

func (x *PageBotRequest) GetPageSize() int32

func (*PageBotRequest) ProtoMessage

func (*PageBotRequest) ProtoMessage()

func (*PageBotRequest) ProtoReflect

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

func (*PageBotRequest) Reset

func (x *PageBotRequest) Reset()

func (*PageBotRequest) String

func (x *PageBotRequest) String() string

func (*PageBotRequest) Validate

func (m *PageBotRequest) Validate() error

Validate checks the field values on PageBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PageBotRequest) ValidateAll

func (m *PageBotRequest) ValidateAll() error

ValidateAll checks the field values on PageBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageBotRequestMultiError, or nil if none found.

type PageBotRequestMultiError

type PageBotRequestMultiError []error

PageBotRequestMultiError is an error wrapping multiple validation errors returned by PageBotRequest.ValidateAll() if the designated constraints aren't met.

func (PageBotRequestMultiError) AllErrors

func (m PageBotRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageBotRequestMultiError) Error

func (m PageBotRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PageBotRequestValidationError

type PageBotRequestValidationError struct {
	// contains filtered or unexported fields
}

PageBotRequestValidationError is the validation error returned by PageBotRequest.Validate if the designated constraints aren't met.

func (PageBotRequestValidationError) Cause

Cause function returns cause value.

func (PageBotRequestValidationError) Error

Error satisfies the builtin error interface

func (PageBotRequestValidationError) ErrorName

func (e PageBotRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PageBotRequestValidationError) Field

Field function returns field value.

func (PageBotRequestValidationError) Key

Key function returns key value.

func (PageBotRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedLayoutAdminServer

type UnimplementedLayoutAdminServer struct {
}

UnimplementedLayoutAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedLayoutAdminServer) CreateBot

func (UnimplementedLayoutAdminServer) DeleteBot

func (UnimplementedLayoutAdminServer) GetBot

func (UnimplementedLayoutAdminServer) ListBot

func (UnimplementedLayoutAdminServer) PageBot

func (UnimplementedLayoutAdminServer) UpdateBot

type UnsafeLayoutAdminServer

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

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

type UpdateBotReply

type UpdateBotReply struct {
	// contains filtered or unexported fields
}

func (*UpdateBotReply) Descriptor deprecated

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

Deprecated: Use UpdateBotReply.ProtoReflect.Descriptor instead.

func (*UpdateBotReply) ProtoMessage

func (*UpdateBotReply) ProtoMessage()

func (*UpdateBotReply) ProtoReflect

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

func (*UpdateBotReply) Reset

func (x *UpdateBotReply) Reset()

func (*UpdateBotReply) String

func (x *UpdateBotReply) String() string

func (*UpdateBotReply) Validate

func (m *UpdateBotReply) Validate() error

Validate checks the field values on UpdateBotReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateBotReply) ValidateAll

func (m *UpdateBotReply) ValidateAll() error

ValidateAll checks the field values on UpdateBotReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateBotReplyMultiError, or nil if none found.

type UpdateBotReplyMultiError

type UpdateBotReplyMultiError []error

UpdateBotReplyMultiError is an error wrapping multiple validation errors returned by UpdateBotReply.ValidateAll() if the designated constraints aren't met.

func (UpdateBotReplyMultiError) AllErrors

func (m UpdateBotReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateBotReplyMultiError) Error

func (m UpdateBotReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateBotReplyValidationError

type UpdateBotReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateBotReplyValidationError is the validation error returned by UpdateBotReply.Validate if the designated constraints aren't met.

func (UpdateBotReplyValidationError) Cause

Cause function returns cause value.

func (UpdateBotReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateBotReplyValidationError) ErrorName

func (e UpdateBotReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateBotReplyValidationError) Field

Field function returns field value.

func (UpdateBotReplyValidationError) Key

Key function returns key value.

func (UpdateBotReplyValidationError) Reason

Reason function returns reason value.

type UpdateBotRequest

type UpdateBotRequest struct {
	Id             uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Source         helloworld.BotSource `protobuf:"varint,2,opt,name=source,proto3,enum=api.helloworld.BotSource" json:"source,omitempty"`
	BotId          string               `protobuf:"bytes,3,opt,name=botId,proto3" json:"botId,omitempty"`
	SubId          string               `protobuf:"bytes,4,opt,name=subId,proto3" json:"subId,omitempty"`
	DriverType     string               `protobuf:"bytes,5,opt,name=driverType,proto3" json:"driverType,omitempty"`
	NotifyTemplate string               `protobuf:"bytes,6,opt,name=notifyTemplate,proto3" json:"notifyTemplate,omitempty"`
	TemplateId     uint64               `protobuf:"varint,7,opt,name=templateId,proto3" json:"templateId,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateBotRequest) Descriptor deprecated

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

Deprecated: Use UpdateBotRequest.ProtoReflect.Descriptor instead.

func (*UpdateBotRequest) GetBotId

func (x *UpdateBotRequest) GetBotId() string

func (*UpdateBotRequest) GetDriverType

func (x *UpdateBotRequest) GetDriverType() string

func (*UpdateBotRequest) GetId

func (x *UpdateBotRequest) GetId() uint64

func (*UpdateBotRequest) GetNotifyTemplate

func (x *UpdateBotRequest) GetNotifyTemplate() string

func (*UpdateBotRequest) GetSource

func (x *UpdateBotRequest) GetSource() helloworld.BotSource

func (*UpdateBotRequest) GetSubId

func (x *UpdateBotRequest) GetSubId() string

func (*UpdateBotRequest) GetTemplateId

func (x *UpdateBotRequest) GetTemplateId() uint64

func (*UpdateBotRequest) ProtoMessage

func (*UpdateBotRequest) ProtoMessage()

func (*UpdateBotRequest) ProtoReflect

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

func (*UpdateBotRequest) Reset

func (x *UpdateBotRequest) Reset()

func (*UpdateBotRequest) String

func (x *UpdateBotRequest) String() string

func (*UpdateBotRequest) Validate

func (m *UpdateBotRequest) Validate() error

Validate checks the field values on UpdateBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateBotRequest) ValidateAll

func (m *UpdateBotRequest) ValidateAll() error

ValidateAll checks the field values on UpdateBotRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateBotRequestMultiError, or nil if none found.

type UpdateBotRequestMultiError

type UpdateBotRequestMultiError []error

UpdateBotRequestMultiError is an error wrapping multiple validation errors returned by UpdateBotRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateBotRequestMultiError) AllErrors

func (m UpdateBotRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateBotRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateBotRequestValidationError

type UpdateBotRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateBotRequestValidationError is the validation error returned by UpdateBotRequest.Validate if the designated constraints aren't met.

func (UpdateBotRequestValidationError) Cause

Cause function returns cause value.

func (UpdateBotRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateBotRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateBotRequestValidationError) Field

Field function returns field value.

func (UpdateBotRequestValidationError) Key

Key function returns key value.

func (UpdateBotRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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