Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterLayoutAdminHTTPServer(s *http.Server, srv LayoutAdminHTTPServer)
- func RegisterLayoutAdminServer(s grpc.ServiceRegistrar, srv LayoutAdminServer)
- type CreateBotReply
- func (*CreateBotReply) Descriptor() ([]byte, []int)deprecated
- func (*CreateBotReply) ProtoMessage()
- func (x *CreateBotReply) ProtoReflect() protoreflect.Message
- func (x *CreateBotReply) Reset()
- func (x *CreateBotReply) String() string
- func (m *CreateBotReply) Validate() error
- func (m *CreateBotReply) ValidateAll() error
- type CreateBotReplyMultiError
- type CreateBotReplyValidationError
- func (e CreateBotReplyValidationError) Cause() error
- func (e CreateBotReplyValidationError) Error() string
- func (e CreateBotReplyValidationError) ErrorName() string
- func (e CreateBotReplyValidationError) Field() string
- func (e CreateBotReplyValidationError) Key() bool
- func (e CreateBotReplyValidationError) Reason() string
- type CreateBotRequest
- func (*CreateBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBotRequest) GetBotId() string
- func (x *CreateBotRequest) GetDriverType() string
- func (x *CreateBotRequest) GetNotifyTemplate() string
- func (x *CreateBotRequest) GetSource() helloworld.BotSource
- func (x *CreateBotRequest) GetSubId() string
- func (x *CreateBotRequest) GetTemplateId() uint64
- func (*CreateBotRequest) ProtoMessage()
- func (x *CreateBotRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBotRequest) Reset()
- func (x *CreateBotRequest) String() string
- func (m *CreateBotRequest) Validate() error
- func (m *CreateBotRequest) ValidateAll() error
- type CreateBotRequestMultiError
- type CreateBotRequestValidationError
- func (e CreateBotRequestValidationError) Cause() error
- func (e CreateBotRequestValidationError) Error() string
- func (e CreateBotRequestValidationError) ErrorName() string
- func (e CreateBotRequestValidationError) Field() string
- func (e CreateBotRequestValidationError) Key() bool
- func (e CreateBotRequestValidationError) Reason() string
- type DeleteBotReply
- func (*DeleteBotReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteBotReply) ProtoMessage()
- func (x *DeleteBotReply) ProtoReflect() protoreflect.Message
- func (x *DeleteBotReply) Reset()
- func (x *DeleteBotReply) String() string
- func (m *DeleteBotReply) Validate() error
- func (m *DeleteBotReply) ValidateAll() error
- type DeleteBotReplyMultiError
- type DeleteBotReplyValidationError
- func (e DeleteBotReplyValidationError) Cause() error
- func (e DeleteBotReplyValidationError) Error() string
- func (e DeleteBotReplyValidationError) ErrorName() string
- func (e DeleteBotReplyValidationError) Field() string
- func (e DeleteBotReplyValidationError) Key() bool
- func (e DeleteBotReplyValidationError) Reason() string
- type DeleteBotRequest
- func (*DeleteBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBotRequest) GetIds() string
- func (*DeleteBotRequest) ProtoMessage()
- func (x *DeleteBotRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBotRequest) Reset()
- func (x *DeleteBotRequest) String() string
- func (m *DeleteBotRequest) Validate() error
- func (m *DeleteBotRequest) ValidateAll() error
- type DeleteBotRequestMultiError
- type DeleteBotRequestValidationError
- func (e DeleteBotRequestValidationError) Cause() error
- func (e DeleteBotRequestValidationError) Error() string
- func (e DeleteBotRequestValidationError) ErrorName() string
- func (e DeleteBotRequestValidationError) Field() string
- func (e DeleteBotRequestValidationError) Key() bool
- func (e DeleteBotRequestValidationError) Reason() string
- type GetBotReply
- func (*GetBotReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBotReply) GetData() *helloworld.Bot
- func (*GetBotReply) ProtoMessage()
- func (x *GetBotReply) ProtoReflect() protoreflect.Message
- func (x *GetBotReply) Reset()
- func (x *GetBotReply) String() string
- func (m *GetBotReply) Validate() error
- func (m *GetBotReply) ValidateAll() error
- type GetBotReplyMultiError
- type GetBotReplyValidationError
- func (e GetBotReplyValidationError) Cause() error
- func (e GetBotReplyValidationError) Error() string
- func (e GetBotReplyValidationError) ErrorName() string
- func (e GetBotReplyValidationError) Field() string
- func (e GetBotReplyValidationError) Key() bool
- func (e GetBotReplyValidationError) Reason() string
- type GetBotRequest
- func (*GetBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBotRequest) GetId() uint64
- func (*GetBotRequest) ProtoMessage()
- func (x *GetBotRequest) ProtoReflect() protoreflect.Message
- func (x *GetBotRequest) Reset()
- func (x *GetBotRequest) String() string
- func (m *GetBotRequest) Validate() error
- func (m *GetBotRequest) ValidateAll() error
- type GetBotRequestMultiError
- type GetBotRequestValidationError
- func (e GetBotRequestValidationError) Cause() error
- func (e GetBotRequestValidationError) Error() string
- func (e GetBotRequestValidationError) ErrorName() string
- func (e GetBotRequestValidationError) Field() string
- func (e GetBotRequestValidationError) Key() bool
- func (e GetBotRequestValidationError) Reason() string
- type LayoutAdminClient
- type LayoutAdminHTTPClient
- type LayoutAdminHTTPClientImpl
- func (c *LayoutAdminHTTPClientImpl) CreateBot(ctx context.Context, in *CreateBotRequest, opts ...http.CallOption) (*CreateBotReply, error)
- func (c *LayoutAdminHTTPClientImpl) DeleteBot(ctx context.Context, in *DeleteBotRequest, opts ...http.CallOption) (*DeleteBotReply, error)
- func (c *LayoutAdminHTTPClientImpl) GetBot(ctx context.Context, in *GetBotRequest, opts ...http.CallOption) (*GetBotReply, error)
- func (c *LayoutAdminHTTPClientImpl) ListBot(ctx context.Context, in *ListBotRequest, opts ...http.CallOption) (*ListBotReply, error)
- func (c *LayoutAdminHTTPClientImpl) PageBot(ctx context.Context, in *PageBotRequest, opts ...http.CallOption) (*PageBotReply, error)
- func (c *LayoutAdminHTTPClientImpl) UpdateBot(ctx context.Context, in *UpdateBotRequest, opts ...http.CallOption) (*UpdateBotReply, error)
- type LayoutAdminHTTPServer
- type LayoutAdminServer
- type ListBotReply
- func (*ListBotReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListBotReply) GetData() []*helloworld.Bot
- func (*ListBotReply) ProtoMessage()
- func (x *ListBotReply) ProtoReflect() protoreflect.Message
- func (x *ListBotReply) Reset()
- func (x *ListBotReply) String() string
- func (m *ListBotReply) Validate() error
- func (m *ListBotReply) ValidateAll() error
- type ListBotReplyMultiError
- type ListBotReplyValidationError
- func (e ListBotReplyValidationError) Cause() error
- func (e ListBotReplyValidationError) Error() string
- func (e ListBotReplyValidationError) ErrorName() string
- func (e ListBotReplyValidationError) Field() string
- func (e ListBotReplyValidationError) Key() bool
- func (e ListBotReplyValidationError) Reason() string
- type ListBotRequest
- func (*ListBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBotRequest) GetChiainId() string
- func (x *ListBotRequest) GetStatus() int32
- func (*ListBotRequest) ProtoMessage()
- func (x *ListBotRequest) ProtoReflect() protoreflect.Message
- func (x *ListBotRequest) Reset()
- func (x *ListBotRequest) String() string
- func (m *ListBotRequest) Validate() error
- func (m *ListBotRequest) ValidateAll() error
- type ListBotRequestMultiError
- type ListBotRequestValidationError
- func (e ListBotRequestValidationError) Cause() error
- func (e ListBotRequestValidationError) Error() string
- func (e ListBotRequestValidationError) ErrorName() string
- func (e ListBotRequestValidationError) Field() string
- func (e ListBotRequestValidationError) Key() bool
- func (e ListBotRequestValidationError) Reason() string
- type PageBotReply
- func (*PageBotReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageBotReply) GetData() []*helloworld.Bot
- func (x *PageBotReply) GetTotal() int32
- func (*PageBotReply) ProtoMessage()
- func (x *PageBotReply) ProtoReflect() protoreflect.Message
- func (x *PageBotReply) Reset()
- func (x *PageBotReply) String() string
- func (m *PageBotReply) Validate() error
- func (m *PageBotReply) ValidateAll() error
- type PageBotReplyMultiError
- type PageBotReplyValidationError
- func (e PageBotReplyValidationError) Cause() error
- func (e PageBotReplyValidationError) Error() string
- func (e PageBotReplyValidationError) ErrorName() string
- func (e PageBotReplyValidationError) Field() string
- func (e PageBotReplyValidationError) Key() bool
- func (e PageBotReplyValidationError) Reason() string
- type PageBotRequest
- func (*PageBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageBotRequest) GetPageIndex() int32
- func (x *PageBotRequest) GetPageSize() int32
- func (*PageBotRequest) ProtoMessage()
- func (x *PageBotRequest) ProtoReflect() protoreflect.Message
- func (x *PageBotRequest) Reset()
- func (x *PageBotRequest) String() string
- func (m *PageBotRequest) Validate() error
- func (m *PageBotRequest) ValidateAll() error
- type PageBotRequestMultiError
- type PageBotRequestValidationError
- func (e PageBotRequestValidationError) Cause() error
- func (e PageBotRequestValidationError) Error() string
- func (e PageBotRequestValidationError) ErrorName() string
- func (e PageBotRequestValidationError) Field() string
- func (e PageBotRequestValidationError) Key() bool
- func (e PageBotRequestValidationError) Reason() string
- type UnimplementedLayoutAdminServer
- func (UnimplementedLayoutAdminServer) CreateBot(context.Context, *CreateBotRequest) (*CreateBotReply, error)
- func (UnimplementedLayoutAdminServer) DeleteBot(context.Context, *DeleteBotRequest) (*DeleteBotReply, error)
- func (UnimplementedLayoutAdminServer) GetBot(context.Context, *GetBotRequest) (*GetBotReply, error)
- func (UnimplementedLayoutAdminServer) ListBot(context.Context, *ListBotRequest) (*ListBotReply, error)
- func (UnimplementedLayoutAdminServer) PageBot(context.Context, *PageBotRequest) (*PageBotReply, error)
- func (UnimplementedLayoutAdminServer) UpdateBot(context.Context, *UpdateBotRequest) (*UpdateBotReply, error)
- type UnsafeLayoutAdminServer
- type UpdateBotReply
- func (*UpdateBotReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateBotReply) ProtoMessage()
- func (x *UpdateBotReply) ProtoReflect() protoreflect.Message
- func (x *UpdateBotReply) Reset()
- func (x *UpdateBotReply) String() string
- func (m *UpdateBotReply) Validate() error
- func (m *UpdateBotReply) ValidateAll() error
- type UpdateBotReplyMultiError
- type UpdateBotReplyValidationError
- func (e UpdateBotReplyValidationError) Cause() error
- func (e UpdateBotReplyValidationError) Error() string
- func (e UpdateBotReplyValidationError) ErrorName() string
- func (e UpdateBotReplyValidationError) Field() string
- func (e UpdateBotReplyValidationError) Key() bool
- func (e UpdateBotReplyValidationError) Reason() string
- type UpdateBotRequest
- func (*UpdateBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBotRequest) GetBotId() string
- func (x *UpdateBotRequest) GetDriverType() string
- func (x *UpdateBotRequest) GetId() uint64
- func (x *UpdateBotRequest) GetNotifyTemplate() string
- func (x *UpdateBotRequest) GetSource() helloworld.BotSource
- func (x *UpdateBotRequest) GetSubId() string
- func (x *UpdateBotRequest) GetTemplateId() uint64
- func (*UpdateBotRequest) ProtoMessage()
- func (x *UpdateBotRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBotRequest) Reset()
- func (x *UpdateBotRequest) String() string
- func (m *UpdateBotRequest) Validate() error
- func (m *UpdateBotRequest) ValidateAll() error
- type UpdateBotRequestMultiError
- type UpdateBotRequestValidationError
- func (e UpdateBotRequestValidationError) Cause() error
- func (e UpdateBotRequestValidationError) Error() string
- func (e UpdateBotRequestValidationError) ErrorName() string
- func (e UpdateBotRequestValidationError) Field() string
- func (e UpdateBotRequestValidationError) Key() bool
- func (e UpdateBotRequestValidationError) Reason() string
Constants ¶
const OperationLayoutAdminCreateBot = "/api.helloworld.admin.LayoutAdmin/CreateBot"
const OperationLayoutAdminDeleteBot = "/api.helloworld.admin.LayoutAdmin/DeleteBot"
const OperationLayoutAdminGetBot = "/api.helloworld.admin.LayoutAdmin/GetBot"
const OperationLayoutAdminListBot = "/api.helloworld.admin.LayoutAdmin/ListBot"
const OperationLayoutAdminPageBot = "/api.helloworld.admin.LayoutAdmin/PageBot"
const OperationLayoutAdminUpdateBot = "/api.helloworld.admin.LayoutAdmin/UpdateBot"
Variables ¶
var File_api_helloworld_admin_admin_proto protoreflect.FileDescriptor
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 ¶
func (e CreateBotReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateBotReplyValidationError) Error ¶
func (e CreateBotReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateBotReplyValidationError) ErrorName ¶
func (e CreateBotReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateBotReplyValidationError) Field ¶
func (e CreateBotReplyValidationError) Field() string
Field function returns field value.
func (CreateBotReplyValidationError) Key ¶
func (e CreateBotReplyValidationError) Key() bool
Key function returns key value.
func (CreateBotReplyValidationError) Reason ¶
func (e CreateBotReplyValidationError) Reason() string
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 ¶
func (m CreateBotRequestMultiError) Error() string
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 ¶
func (e CreateBotRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateBotRequestValidationError) Error ¶
func (e CreateBotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateBotRequestValidationError) ErrorName ¶
func (e CreateBotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateBotRequestValidationError) Field ¶
func (e CreateBotRequestValidationError) Field() string
Field function returns field value.
func (CreateBotRequestValidationError) Key ¶
func (e CreateBotRequestValidationError) Key() bool
Key function returns key value.
func (CreateBotRequestValidationError) Reason ¶
func (e CreateBotRequestValidationError) Reason() string
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 ¶
func (e DeleteBotReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteBotReplyValidationError) Error ¶
func (e DeleteBotReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteBotReplyValidationError) ErrorName ¶
func (e DeleteBotReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteBotReplyValidationError) Field ¶
func (e DeleteBotReplyValidationError) Field() string
Field function returns field value.
func (DeleteBotReplyValidationError) Key ¶
func (e DeleteBotReplyValidationError) Key() bool
Key function returns key value.
func (DeleteBotReplyValidationError) Reason ¶
func (e DeleteBotReplyValidationError) Reason() string
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 ¶
func (m DeleteBotRequestMultiError) Error() string
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 ¶
func (e DeleteBotRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteBotRequestValidationError) Error ¶
func (e DeleteBotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteBotRequestValidationError) ErrorName ¶
func (e DeleteBotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteBotRequestValidationError) Field ¶
func (e DeleteBotRequestValidationError) Field() string
Field function returns field value.
func (DeleteBotRequestValidationError) Key ¶
func (e DeleteBotRequestValidationError) Key() bool
Key function returns key value.
func (DeleteBotRequestValidationError) Reason ¶
func (e DeleteBotRequestValidationError) Reason() string
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 ¶
func (e GetBotReplyValidationError) Cause() error
Cause function returns cause value.
func (GetBotReplyValidationError) Error ¶
func (e GetBotReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetBotReplyValidationError) ErrorName ¶
func (e GetBotReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetBotReplyValidationError) Field ¶
func (e GetBotReplyValidationError) Field() string
Field function returns field value.
func (GetBotReplyValidationError) Key ¶
func (e GetBotReplyValidationError) Key() bool
Key function returns key value.
func (GetBotReplyValidationError) Reason ¶
func (e GetBotReplyValidationError) Reason() string
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 ¶
func (e GetBotRequestValidationError) Cause() error
Cause function returns cause value.
func (GetBotRequestValidationError) Error ¶
func (e GetBotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetBotRequestValidationError) ErrorName ¶
func (e GetBotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetBotRequestValidationError) Field ¶
func (e GetBotRequestValidationError) Field() string
Field function returns field value.
func (GetBotRequestValidationError) Key ¶
func (e GetBotRequestValidationError) Key() bool
Key function returns key value.
func (GetBotRequestValidationError) Reason ¶
func (e GetBotRequestValidationError) Reason() string
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.
func NewLayoutAdminClient ¶
func NewLayoutAdminClient(cc grpc.ClientConnInterface) LayoutAdminClient
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 (c *LayoutAdminHTTPClientImpl) CreateBot(ctx context.Context, in *CreateBotRequest, opts ...http.CallOption) (*CreateBotReply, error)
func (*LayoutAdminHTTPClientImpl) DeleteBot ¶
func (c *LayoutAdminHTTPClientImpl) DeleteBot(ctx context.Context, in *DeleteBotRequest, opts ...http.CallOption) (*DeleteBotReply, error)
func (*LayoutAdminHTTPClientImpl) GetBot ¶
func (c *LayoutAdminHTTPClientImpl) GetBot(ctx context.Context, in *GetBotRequest, opts ...http.CallOption) (*GetBotReply, error)
func (*LayoutAdminHTTPClientImpl) ListBot ¶
func (c *LayoutAdminHTTPClientImpl) ListBot(ctx context.Context, in *ListBotRequest, opts ...http.CallOption) (*ListBotReply, error)
func (*LayoutAdminHTTPClientImpl) PageBot ¶
func (c *LayoutAdminHTTPClientImpl) PageBot(ctx context.Context, in *PageBotRequest, opts ...http.CallOption) (*PageBotReply, error)
func (*LayoutAdminHTTPClientImpl) UpdateBot ¶
func (c *LayoutAdminHTTPClientImpl) UpdateBot(ctx context.Context, in *UpdateBotRequest, opts ...http.CallOption) (*UpdateBotReply, error)
type LayoutAdminHTTPServer ¶
type LayoutAdminHTTPServer interface { CreateBot(context.Context, *CreateBotRequest) (*CreateBotReply, error) DeleteBot(context.Context, *DeleteBotRequest) (*DeleteBotReply, error) GetBot(context.Context, *GetBotRequest) (*GetBotReply, error) ListBot(context.Context, *ListBotRequest) (*ListBotReply, error) PageBot(context.Context, *PageBotRequest) (*PageBotReply, error) UpdateBot(context.Context, *UpdateBotRequest) (*UpdateBotReply, error) }
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 ¶
func (e ListBotReplyValidationError) Cause() error
Cause function returns cause value.
func (ListBotReplyValidationError) Error ¶
func (e ListBotReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListBotReplyValidationError) ErrorName ¶
func (e ListBotReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListBotReplyValidationError) Field ¶
func (e ListBotReplyValidationError) Field() string
Field function returns field value.
func (ListBotReplyValidationError) Key ¶
func (e ListBotReplyValidationError) Key() bool
Key function returns key value.
func (ListBotReplyValidationError) Reason ¶
func (e ListBotReplyValidationError) Reason() string
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 ¶
func (e ListBotRequestValidationError) Cause() error
Cause function returns cause value.
func (ListBotRequestValidationError) Error ¶
func (e ListBotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListBotRequestValidationError) ErrorName ¶
func (e ListBotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListBotRequestValidationError) Field ¶
func (e ListBotRequestValidationError) Field() string
Field function returns field value.
func (ListBotRequestValidationError) Key ¶
func (e ListBotRequestValidationError) Key() bool
Key function returns key value.
func (ListBotRequestValidationError) Reason ¶
func (e ListBotRequestValidationError) Reason() string
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 ¶
func (e PageBotReplyValidationError) Cause() error
Cause function returns cause value.
func (PageBotReplyValidationError) Error ¶
func (e PageBotReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageBotReplyValidationError) ErrorName ¶
func (e PageBotReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageBotReplyValidationError) Field ¶
func (e PageBotReplyValidationError) Field() string
Field function returns field value.
func (PageBotReplyValidationError) Key ¶
func (e PageBotReplyValidationError) Key() bool
Key function returns key value.
func (PageBotReplyValidationError) Reason ¶
func (e PageBotReplyValidationError) Reason() string
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 ¶
func (e PageBotRequestValidationError) Cause() error
Cause function returns cause value.
func (PageBotRequestValidationError) Error ¶
func (e PageBotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageBotRequestValidationError) ErrorName ¶
func (e PageBotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageBotRequestValidationError) Field ¶
func (e PageBotRequestValidationError) Field() string
Field function returns field value.
func (PageBotRequestValidationError) Key ¶
func (e PageBotRequestValidationError) Key() bool
Key function returns key value.
func (PageBotRequestValidationError) Reason ¶
func (e PageBotRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedLayoutAdminServer ¶
type UnimplementedLayoutAdminServer struct { }
UnimplementedLayoutAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedLayoutAdminServer) CreateBot ¶
func (UnimplementedLayoutAdminServer) CreateBot(context.Context, *CreateBotRequest) (*CreateBotReply, error)
func (UnimplementedLayoutAdminServer) DeleteBot ¶
func (UnimplementedLayoutAdminServer) DeleteBot(context.Context, *DeleteBotRequest) (*DeleteBotReply, error)
func (UnimplementedLayoutAdminServer) GetBot ¶
func (UnimplementedLayoutAdminServer) GetBot(context.Context, *GetBotRequest) (*GetBotReply, error)
func (UnimplementedLayoutAdminServer) ListBot ¶
func (UnimplementedLayoutAdminServer) ListBot(context.Context, *ListBotRequest) (*ListBotReply, error)
func (UnimplementedLayoutAdminServer) PageBot ¶
func (UnimplementedLayoutAdminServer) PageBot(context.Context, *PageBotRequest) (*PageBotReply, error)
func (UnimplementedLayoutAdminServer) UpdateBot ¶
func (UnimplementedLayoutAdminServer) UpdateBot(context.Context, *UpdateBotRequest) (*UpdateBotReply, error)
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 ¶
func (e UpdateBotReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateBotReplyValidationError) Error ¶
func (e UpdateBotReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBotReplyValidationError) ErrorName ¶
func (e UpdateBotReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBotReplyValidationError) Field ¶
func (e UpdateBotReplyValidationError) Field() string
Field function returns field value.
func (UpdateBotReplyValidationError) Key ¶
func (e UpdateBotReplyValidationError) Key() bool
Key function returns key value.
func (UpdateBotReplyValidationError) Reason ¶
func (e UpdateBotReplyValidationError) Reason() string
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 ¶
func (m UpdateBotRequestMultiError) Error() string
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 ¶
func (e UpdateBotRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateBotRequestValidationError) Error ¶
func (e UpdateBotRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBotRequestValidationError) ErrorName ¶
func (e UpdateBotRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBotRequestValidationError) Field ¶
func (e UpdateBotRequestValidationError) Field() string
Field function returns field value.
func (UpdateBotRequestValidationError) Key ¶
func (e UpdateBotRequestValidationError) Key() bool
Key function returns key value.
func (UpdateBotRequestValidationError) Reason ¶
func (e UpdateBotRequestValidationError) Reason() string
Reason function returns reason value.