Documentation ¶
Index ¶
- Variables
- func NewAnchorInviteEndpoints() []*api.Endpoint
- func RegisterAnchorInviteHandler(s server.Server, hdlr AnchorInviteHandler, opts ...server.HandlerOption) error
- type AnchorInviteHandler
- type AnchorInviteService
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetItem() *Item
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- func (m *CreateRequest) Validate() error
- func (m *CreateRequest) ValidateAll() error
- type CreateRequestMultiError
- type CreateRequestValidationError
- func (e CreateRequestValidationError) Cause() error
- func (e CreateRequestValidationError) Error() string
- func (e CreateRequestValidationError) ErrorName() string
- func (e CreateRequestValidationError) Field() string
- func (e CreateRequestValidationError) Key() bool
- func (e CreateRequestValidationError) Reason() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetItem() *Item
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- func (m *CreateResponse) Validate() error
- func (m *CreateResponse) ValidateAll() error
- type CreateResponseMultiError
- type CreateResponseValidationError
- func (e CreateResponseValidationError) Cause() error
- func (e CreateResponseValidationError) Error() string
- func (e CreateResponseValidationError) ErrorName() string
- func (e CreateResponseValidationError) Field() string
- func (e CreateResponseValidationError) Key() bool
- func (e CreateResponseValidationError) Reason() string
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetAnchorId() int64
- func (x *Item) GetAnchorShowId() int64
- func (x *Item) GetCountry() string
- func (x *Item) GetCreatedAt() string
- func (x *Item) GetFingerprint() string
- func (x *Item) GetRegisterAt() string
- func (x *Item) GetShowId() int64
- func (x *Item) GetUid() int64
- func (x *Item) GetUpdatedAt() string
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- func (m *Item) Validate() error
- func (m *Item) ValidateAll() error
- type ItemMultiError
- type ItemValidationError
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetAnchorId() int64
- func (x *ListRequest) GetAnchorShowId() int64
- func (x *ListRequest) GetEndAt() string
- func (x *ListRequest) GetMask() *fieldmaskpb.FieldMask
- func (x *ListRequest) GetPage() int32
- func (x *ListRequest) GetPageSize() int32
- func (x *ListRequest) GetStartAt() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetList() []*Item
- func (x *ListResponse) GetPage() int32
- func (x *ListResponse) GetPageSize() int32
- func (x *ListResponse) GetPageTotal() int32
- func (x *ListResponse) GetTotal() int64
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_anchor_invite_anchor_invite_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAnchorInviteHandler ¶
func RegisterAnchorInviteHandler(s server.Server, hdlr AnchorInviteHandler, opts ...server.HandlerOption) error
Types ¶
type AnchorInviteHandler ¶
type AnchorInviteHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error List(context.Context, *ListRequest, *ListResponse) error }
type AnchorInviteService ¶
type AnchorInviteService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) }
func NewAnchorInviteService ¶
func NewAnchorInviteService(name string, c client.Client) AnchorInviteService
type CreateRequest ¶
type CreateRequest struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetItem ¶
func (x *CreateRequest) GetItem() *Item
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
func (*CreateRequest) Validate ¶
func (m *CreateRequest) Validate() error
Validate checks the field values on CreateRequest 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 (*CreateRequest) ValidateAll ¶
func (m *CreateRequest) ValidateAll() error
ValidateAll checks the field values on CreateRequest 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 CreateRequestMultiError, or nil if none found.
type CreateRequestMultiError ¶
type CreateRequestMultiError []error
CreateRequestMultiError is an error wrapping multiple validation errors returned by CreateRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRequestMultiError) AllErrors ¶
func (m CreateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRequestMultiError) Error ¶
func (m CreateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRequestValidationError ¶
type CreateRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.
func (CreateRequestValidationError) Cause ¶
func (e CreateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRequestValidationError) Error ¶
func (e CreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequestValidationError) ErrorName ¶
func (e CreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequestValidationError) Field ¶
func (e CreateRequestValidationError) Field() string
Field function returns field value.
func (CreateRequestValidationError) Key ¶
func (e CreateRequestValidationError) Key() bool
Key function returns key value.
func (CreateRequestValidationError) Reason ¶
func (e CreateRequestValidationError) Reason() string
Reason function returns reason value.
type CreateResponse ¶
type CreateResponse struct { Item *Item `protobuf:"bytes,1,opt,name=Item,proto3" json:"Item"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetItem ¶
func (x *CreateResponse) GetItem() *Item
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
func (*CreateResponse) Validate ¶
func (m *CreateResponse) Validate() error
Validate checks the field values on CreateResponse 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 (*CreateResponse) ValidateAll ¶
func (m *CreateResponse) ValidateAll() error
ValidateAll checks the field values on CreateResponse 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 CreateResponseMultiError, or nil if none found.
type CreateResponseMultiError ¶
type CreateResponseMultiError []error
CreateResponseMultiError is an error wrapping multiple validation errors returned by CreateResponse.ValidateAll() if the designated constraints aren't met.
func (CreateResponseMultiError) AllErrors ¶
func (m CreateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateResponseMultiError) Error ¶
func (m CreateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateResponseValidationError ¶
type CreateResponseValidationError struct {
// contains filtered or unexported fields
}
CreateResponseValidationError is the validation error returned by CreateResponse.Validate if the designated constraints aren't met.
func (CreateResponseValidationError) Cause ¶
func (e CreateResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateResponseValidationError) Error ¶
func (e CreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateResponseValidationError) ErrorName ¶
func (e CreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateResponseValidationError) Field ¶
func (e CreateResponseValidationError) Field() string
Field function returns field value.
func (CreateResponseValidationError) Key ¶
func (e CreateResponseValidationError) Key() bool
Key function returns key value.
func (CreateResponseValidationError) Reason ¶
func (e CreateResponseValidationError) Reason() string
Reason function returns reason value.
type Item ¶
type Item struct { AnchorId int64 `protobuf:"varint,1,opt,name=AnchorId,proto3" json:"AnchorId"` Uid int64 `protobuf:"varint,2,opt,name=Uid,proto3" json:"Uid"` ShowId int64 `protobuf:"varint,3,opt,name=ShowId,proto3" json:"ShowId"` AnchorShowId int64 `protobuf:"varint,4,opt,name=AnchorShowId,proto3" json:"AnchorShowId"` Fingerprint string `protobuf:"bytes,5,opt,name=Fingerprint,proto3" json:"Fingerprint"` //指纹 Country string `protobuf:"bytes,6,opt,name=Country,proto3" json:"Country"` // 国家 RegisterAt string `protobuf:"bytes,7,opt,name=RegisterAt,proto3" json:"RegisterAt"` // 用户注册时间 CreatedAt string `protobuf:"bytes,8,opt,name=CreatedAt,proto3" json:"CreatedAt"` // 创建时间 UpdatedAt string `protobuf:"bytes,9,opt,name=UpdatedAt,proto3" json:"UpdatedAt"` // 修改时间 // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) GetAnchorId ¶
func (*Item) GetAnchorShowId ¶
func (*Item) GetCountry ¶
func (*Item) GetCreatedAt ¶
func (*Item) GetFingerprint ¶
func (*Item) GetRegisterAt ¶
func (*Item) GetUpdatedAt ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
func (*Item) Validate ¶
Validate checks the field values on Item 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 (*Item) ValidateAll ¶
ValidateAll checks the field values on Item 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 ItemMultiError, or nil if none found.
type ItemMultiError ¶
type ItemMultiError []error
ItemMultiError is an error wrapping multiple validation errors returned by Item.ValidateAll() if the designated constraints aren't met.
func (ItemMultiError) AllErrors ¶
func (m ItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ItemMultiError) Error ¶
func (m ItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ItemValidationError ¶
type ItemValidationError struct {
// contains filtered or unexported fields
}
ItemValidationError is the validation error returned by Item.Validate if the designated constraints aren't met.
func (ItemValidationError) Cause ¶
func (e ItemValidationError) Cause() error
Cause function returns cause value.
func (ItemValidationError) Error ¶
func (e ItemValidationError) Error() string
Error satisfies the builtin error interface
func (ItemValidationError) ErrorName ¶
func (e ItemValidationError) ErrorName() string
ErrorName returns error name.
func (ItemValidationError) Field ¶
func (e ItemValidationError) Field() string
Field function returns field value.
func (ItemValidationError) Key ¶
func (e ItemValidationError) Key() bool
Key function returns key value.
func (ItemValidationError) Reason ¶
func (e ItemValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct { AnchorShowId int64 `protobuf:"varint,1,opt,name=AnchorShowId,proto3" json:"AnchorShowId"` AnchorId int64 `protobuf:"varint,2,opt,name=AnchorId,proto3" json:"AnchorId"` StartAt string `protobuf:"bytes,3,opt,name=StartAt,proto3" json:"StartAt"` EndAt string `protobuf:"bytes,4,opt,name=EndAt,proto3" json:"EndAt"` Page int32 `protobuf:"varint,5,opt,name=Page,proto3" json:"Page"` PageSize int32 `protobuf:"varint,6,opt,name=PageSize,proto3" json:"PageSize"` Mask *fieldmaskpb.FieldMask `protobuf:"bytes,7,opt,name=mask,proto3" json:"mask"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetAnchorId ¶
func (x *ListRequest) GetAnchorId() int64
func (*ListRequest) GetAnchorShowId ¶
func (x *ListRequest) GetAnchorShowId() int64
func (*ListRequest) GetEndAt ¶
func (x *ListRequest) GetEndAt() string
func (*ListRequest) GetMask ¶
func (x *ListRequest) GetMask() *fieldmaskpb.FieldMask
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int32
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() int32
func (*ListRequest) GetStartAt ¶
func (x *ListRequest) GetStartAt() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest 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 (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest 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 ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { List []*Item `protobuf:"bytes,1,rep,name=List,proto3" json:"List"` Total int64 `protobuf:"varint,2,opt,name=Total,proto3" json:"Total"` Page int32 `protobuf:"varint,3,opt,name=Page,proto3" json:"Page"` PageSize int32 `protobuf:"varint,4,opt,name=PageSize,proto3" json:"PageSize"` PageTotal int32 `protobuf:"varint,5,opt,name=PageTotal,proto3" json:"PageTotal"` // 总共多少页 // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetList ¶
func (x *ListResponse) GetList() []*Item
func (*ListResponse) GetPage ¶
func (x *ListResponse) GetPage() int32
func (*ListResponse) GetPageSize ¶
func (x *ListResponse) GetPageSize() int32
func (*ListResponse) GetPageTotal ¶
func (x *ListResponse) GetPageTotal() int32
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() int64
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse 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 (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse 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 ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.