pb

package
v0.0.0-...-66c47ec Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewPdfServiceEndpoints

func NewPdfServiceEndpoints() []*api.Endpoint

func NewUserServiceEndpoints

func NewUserServiceEndpoints() []*api.Endpoint

func RegisterPdfServiceHandler

func RegisterPdfServiceHandler(s server.Server, hdlr PdfServiceHandler, opts ...server.HandlerOption) error

func RegisterUserServiceHandler

func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error

Types

type AddWaterMarkReq

type AddWaterMarkReq struct {
	Text  string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	File  string   `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	Pages []string `protobuf:"bytes,3,rep,name=pages,proto3" json:"pages,omitempty"`
	// contains filtered or unexported fields
}

加水印

func (*AddWaterMarkReq) Descriptor deprecated

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

Deprecated: Use AddWaterMarkReq.ProtoReflect.Descriptor instead.

func (*AddWaterMarkReq) GetFile

func (x *AddWaterMarkReq) GetFile() string

func (*AddWaterMarkReq) GetPages

func (x *AddWaterMarkReq) GetPages() []string

func (*AddWaterMarkReq) GetText

func (x *AddWaterMarkReq) GetText() string

func (*AddWaterMarkReq) ProtoMessage

func (*AddWaterMarkReq) ProtoMessage()

func (*AddWaterMarkReq) ProtoReflect

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

func (*AddWaterMarkReq) Reset

func (x *AddWaterMarkReq) Reset()

func (*AddWaterMarkReq) String

func (x *AddWaterMarkReq) String() string

type AddWaterMarkResp

type AddWaterMarkResp struct {
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*AddWaterMarkResp) Descriptor deprecated

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

Deprecated: Use AddWaterMarkResp.ProtoReflect.Descriptor instead.

func (*AddWaterMarkResp) GetCode

func (x *AddWaterMarkResp) GetCode() uint32

func (*AddWaterMarkResp) GetFile

func (x *AddWaterMarkResp) GetFile() string

func (*AddWaterMarkResp) ProtoMessage

func (*AddWaterMarkResp) ProtoMessage()

func (*AddWaterMarkResp) ProtoReflect

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

func (*AddWaterMarkResp) Reset

func (x *AddWaterMarkResp) Reset()

func (*AddWaterMarkResp) String

func (x *AddWaterMarkResp) String() string

type LoginReq

type LoginReq struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

登录

func (*LoginReq) Descriptor deprecated

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetName

func (x *LoginReq) GetName() string

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

type LoginResp

type LoginResp struct {
	User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Code uint32     `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResp) Descriptor deprecated

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

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

func (*LoginResp) GetCode

func (x *LoginResp) GetCode() uint32

func (*LoginResp) GetUser

func (x *LoginResp) GetUser() *UserModel

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) ProtoReflect

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

func (*LoginResp) Reset

func (x *LoginResp) Reset()

func (*LoginResp) String

func (x *LoginResp) String() string

type MergeReq

type MergeReq struct {
	Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

合并

func (*MergeReq) Descriptor deprecated

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

Deprecated: Use MergeReq.ProtoReflect.Descriptor instead.

func (*MergeReq) GetFiles

func (x *MergeReq) GetFiles() []string

func (*MergeReq) ProtoMessage

func (*MergeReq) ProtoMessage()

func (*MergeReq) ProtoReflect

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

func (*MergeReq) Reset

func (x *MergeReq) Reset()

func (*MergeReq) String

func (x *MergeReq) String() string

type MergeResp

type MergeResp struct {
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*MergeResp) Descriptor deprecated

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

Deprecated: Use MergeResp.ProtoReflect.Descriptor instead.

func (*MergeResp) GetCode

func (x *MergeResp) GetCode() uint32

func (*MergeResp) GetFile

func (x *MergeResp) GetFile() string

func (*MergeResp) ProtoMessage

func (*MergeResp) ProtoMessage()

func (*MergeResp) ProtoReflect

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

func (*MergeResp) Reset

func (x *MergeResp) Reset()

func (*MergeResp) String

func (x *MergeResp) String() string

type PdfService

type PdfService interface {
	Split(ctx context.Context, in *SplitReq, opts ...client.CallOption) (*SplitResp, error)
	Merge(ctx context.Context, in *MergeReq, opts ...client.CallOption) (*MergeResp, error)
	AddWaterMark(ctx context.Context, in *AddWaterMarkReq, opts ...client.CallOption) (*AddWaterMarkResp, error)
}

func NewPdfService

func NewPdfService(name string, c client.Client) PdfService

type PdfServiceHandler

type PdfServiceHandler interface {
	Split(context.Context, *SplitReq, *SplitResp) error
	Merge(context.Context, *MergeReq, *MergeResp) error
	AddWaterMark(context.Context, *AddWaterMarkReq, *AddWaterMarkResp) error
}

type SignUpReq

type SignUpReq struct {
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password        string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	ConfirmPassword string `protobuf:"bytes,3,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"`
	// contains filtered or unexported fields
}

注册

func (*SignUpReq) Descriptor deprecated

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

Deprecated: Use SignUpReq.ProtoReflect.Descriptor instead.

func (*SignUpReq) GetConfirmPassword

func (x *SignUpReq) GetConfirmPassword() string

func (*SignUpReq) GetName

func (x *SignUpReq) GetName() string

func (*SignUpReq) GetPassword

func (x *SignUpReq) GetPassword() string

func (*SignUpReq) ProtoMessage

func (*SignUpReq) ProtoMessage()

func (*SignUpReq) ProtoReflect

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

func (*SignUpReq) Reset

func (x *SignUpReq) Reset()

func (*SignUpReq) String

func (x *SignUpReq) String() string

type SignUpResp

type SignUpResp struct {
	User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Code uint32     `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpResp) Descriptor deprecated

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

Deprecated: Use SignUpResp.ProtoReflect.Descriptor instead.

func (*SignUpResp) GetCode

func (x *SignUpResp) GetCode() uint32

func (*SignUpResp) GetUser

func (x *SignUpResp) GetUser() *UserModel

func (*SignUpResp) ProtoMessage

func (*SignUpResp) ProtoMessage()

func (*SignUpResp) ProtoReflect

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

func (*SignUpResp) Reset

func (x *SignUpResp) Reset()

func (*SignUpResp) String

func (x *SignUpResp) String() string

type SplitReq

type SplitReq struct {
	Page []string `protobuf:"bytes,1,rep,name=page,proto3" json:"page,omitempty"`
	Span int64    `protobuf:"varint,2,opt,name=span,proto3" json:"span,omitempty"`
	File string   `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

切分

func (*SplitReq) Descriptor deprecated

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

Deprecated: Use SplitReq.ProtoReflect.Descriptor instead.

func (*SplitReq) GetFile

func (x *SplitReq) GetFile() string

func (*SplitReq) GetPage

func (x *SplitReq) GetPage() []string

func (*SplitReq) GetSpan

func (x *SplitReq) GetSpan() int64

func (*SplitReq) ProtoMessage

func (*SplitReq) ProtoMessage()

func (*SplitReq) ProtoReflect

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

func (*SplitReq) Reset

func (x *SplitReq) Reset()

func (*SplitReq) String

func (x *SplitReq) String() string

type SplitResp

type SplitResp struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*SplitResp) Descriptor deprecated

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

Deprecated: Use SplitResp.ProtoReflect.Descriptor instead.

func (*SplitResp) GetCode

func (x *SplitResp) GetCode() uint32

func (*SplitResp) ProtoMessage

func (*SplitResp) ProtoMessage()

func (*SplitResp) ProtoReflect

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

func (*SplitResp) Reset

func (x *SplitResp) Reset()

func (*SplitResp) String

func (x *SplitResp) String() string

type UserModel

type UserModel struct {

	// @inject_tag: json:"id" form:"id"
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// @inject_tag: json:"user_name" form:"user_name"
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	// @inject_tag: json:"created_at"
	CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// @inject_tag: json:"updated_at"
	UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// @inject_tag: json:"deleted_at"
	DeletedAt int64 `protobuf:"varint,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

func (*UserModel) Descriptor deprecated

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

Deprecated: Use UserModel.ProtoReflect.Descriptor instead.

func (*UserModel) GetCreatedAt

func (x *UserModel) GetCreatedAt() int64

func (*UserModel) GetDeletedAt

func (x *UserModel) GetDeletedAt() int64

func (*UserModel) GetId

func (x *UserModel) GetId() uint32

func (*UserModel) GetUpdatedAt

func (x *UserModel) GetUpdatedAt() int64

func (*UserModel) GetUserName

func (x *UserModel) GetUserName() string

func (*UserModel) ProtoMessage

func (*UserModel) ProtoMessage()

func (*UserModel) ProtoReflect

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

func (*UserModel) Reset

func (x *UserModel) Reset()

func (*UserModel) String

func (x *UserModel) String() string

type UserService

type UserService interface {
	Login(ctx context.Context, in *LoginReq, opts ...client.CallOption) (*LoginResp, error)
	Signup(ctx context.Context, in *SignUpReq, opts ...client.CallOption) (*SignUpResp, error)
}

func NewUserService

func NewUserService(name string, c client.Client) UserService

type UserServiceHandler

type UserServiceHandler interface {
	Login(context.Context, *LoginReq, *LoginResp) error
	Signup(context.Context, *SignUpReq, *SignUpResp) error
}

Jump to

Keyboard shortcuts

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