anchor_invite

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_anchor_invite_anchor_invite_proto protoreflect.FileDescriptor

Functions

func NewAnchorInviteEndpoints

func NewAnchorInviteEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (CreateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRequestValidationError) ErrorName

func (e CreateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRequestValidationError) Field

Field function returns field value.

func (CreateRequestValidationError) Key

Key function returns key value.

func (CreateRequestValidationError) Reason

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

Cause function returns cause value.

func (CreateResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateResponseValidationError) ErrorName

func (e CreateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CreateResponseValidationError) Field

Field function returns field value.

func (CreateResponseValidationError) Key

Key function returns key value.

func (CreateResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetAnchorId

func (x *Item) GetAnchorId() int64

func (*Item) GetAnchorShowId

func (x *Item) GetAnchorShowId() int64

func (*Item) GetCountry

func (x *Item) GetCountry() string

func (*Item) GetCreatedAt

func (x *Item) GetCreatedAt() string

func (*Item) GetFingerprint

func (x *Item) GetFingerprint() string

func (*Item) GetRegisterAt

func (x *Item) GetRegisterAt() string

func (*Item) GetShowId

func (x *Item) GetShowId() int64

func (*Item) GetUid

func (x *Item) GetUid() int64

func (*Item) GetUpdatedAt

func (x *Item) GetUpdatedAt() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

func (*Item) Validate

func (m *Item) Validate() error

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

func (m *Item) ValidateAll() error

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

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

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

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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