expressionpb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package expressionpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExpressionServiceHandler

func RegisterExpressionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterExpressionServiceHandler registers the http handlers for service ExpressionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterExpressionServiceHandlerClient

func RegisterExpressionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExpressionServiceClient) error

RegisterExpressionServiceHandlerClient registers the http handlers for service ExpressionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExpressionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExpressionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ExpressionServiceClient" to call the correct interceptors.

func RegisterExpressionServiceHandlerFromEndpoint

func RegisterExpressionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterExpressionServiceHandlerFromEndpoint is same as RegisterExpressionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterExpressionServiceHandlerServer

func RegisterExpressionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExpressionServiceServer) error

RegisterExpressionServiceHandlerServer registers the http handlers for service ExpressionService to "mux". UnaryRPC :call ExpressionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterExpressionServiceServer

func RegisterExpressionServiceServer(s *grpc.Server, srv ExpressionServiceServer)

Types

type DeleteExpressionsRequest

type DeleteExpressionsRequest struct {
	// 删除表情id列表
	ExpressionsId        []string `protobuf:"bytes,1,rep,name=expressions_id,json=expressionsId,proto3" json:"expressions_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

删除表情请求

func (*DeleteExpressionsRequest) Descriptor

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

func (*DeleteExpressionsRequest) GetExpressionsId

func (m *DeleteExpressionsRequest) GetExpressionsId() []string

func (*DeleteExpressionsRequest) ProtoMessage

func (*DeleteExpressionsRequest) ProtoMessage()

func (*DeleteExpressionsRequest) Reset

func (m *DeleteExpressionsRequest) Reset()

func (*DeleteExpressionsRequest) String

func (m *DeleteExpressionsRequest) String() string

func (*DeleteExpressionsRequest) XXX_DiscardUnknown

func (m *DeleteExpressionsRequest) XXX_DiscardUnknown()

func (*DeleteExpressionsRequest) XXX_Marshal

func (m *DeleteExpressionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteExpressionsRequest) XXX_Merge

func (m *DeleteExpressionsRequest) XXX_Merge(src proto.Message)

func (*DeleteExpressionsRequest) XXX_Size

func (m *DeleteExpressionsRequest) XXX_Size() int

func (*DeleteExpressionsRequest) XXX_Unmarshal

func (m *DeleteExpressionsRequest) XXX_Unmarshal(b []byte) error

type DeleteExpressionsResponse

type DeleteExpressionsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

删除表情结果

func (*DeleteExpressionsResponse) Descriptor

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

func (*DeleteExpressionsResponse) ProtoMessage

func (*DeleteExpressionsResponse) ProtoMessage()

func (*DeleteExpressionsResponse) Reset

func (m *DeleteExpressionsResponse) Reset()

func (*DeleteExpressionsResponse) String

func (m *DeleteExpressionsResponse) String() string

func (*DeleteExpressionsResponse) XXX_DiscardUnknown

func (m *DeleteExpressionsResponse) XXX_DiscardUnknown()

func (*DeleteExpressionsResponse) XXX_Marshal

func (m *DeleteExpressionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteExpressionsResponse) XXX_Merge

func (m *DeleteExpressionsResponse) XXX_Merge(src proto.Message)

func (*DeleteExpressionsResponse) XXX_Size

func (m *DeleteExpressionsResponse) XXX_Size() int

func (*DeleteExpressionsResponse) XXX_Unmarshal

func (m *DeleteExpressionsResponse) XXX_Unmarshal(b []byte) error

type ExpressionInfo

type ExpressionInfo struct {
	// 表情id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// 表情名
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 预览图
	PreviewB64           string   `protobuf:"bytes,3,opt,name=preview_b64,json=previewB64,proto3" json:"preview_b64,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

表情对象

func (*ExpressionInfo) Descriptor

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

func (*ExpressionInfo) GetId

func (m *ExpressionInfo) GetId() string

func (*ExpressionInfo) GetName

func (m *ExpressionInfo) GetName() string

func (*ExpressionInfo) GetPreviewB64

func (m *ExpressionInfo) GetPreviewB64() string

func (*ExpressionInfo) ProtoMessage

func (*ExpressionInfo) ProtoMessage()

func (*ExpressionInfo) Reset

func (m *ExpressionInfo) Reset()

func (*ExpressionInfo) String

func (m *ExpressionInfo) String() string

func (*ExpressionInfo) XXX_DiscardUnknown

func (m *ExpressionInfo) XXX_DiscardUnknown()

func (*ExpressionInfo) XXX_Marshal

func (m *ExpressionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExpressionInfo) XXX_Merge

func (m *ExpressionInfo) XXX_Merge(src proto.Message)

func (*ExpressionInfo) XXX_Size

func (m *ExpressionInfo) XXX_Size() int

func (*ExpressionInfo) XXX_Unmarshal

func (m *ExpressionInfo) XXX_Unmarshal(b []byte) error

type ExpressionServiceClient

type ExpressionServiceClient interface {
	// PlayExpressions 播放表情组合
	//
	// 单套表情限制请参考UploadExpressionFile方法,
	// 更为复杂的表情设计可基于多个最小化表情进行组合
	PlayExpressions(ctx context.Context, in *PlayExpressionsRequest, opts ...grpc.CallOption) (*PlayExpressionsResponse, error)
	// StopExpression 停止表情播放
	//
	// 此方法将表现为播放至当前帧终止,不会恢复为当前表情的首帧
	StopExpression(ctx context.Context, in *StopExpressionRequest, opts ...grpc.CallOption) (*StopExpressionResponse, error)
	// UploadExpressionFile 上传表情文件
	//
	// 上传表情图片zip文件,用于构建新的表情
	//
	// 表情文件为zip格式数据,如Example.zip文件上传后该表情将命名为"Example",命名可通过Rename方法进行更改
	//
	// windows用户请在表情目录中选中preview.png, left目录,right目录,直接压缩为zip文件,不支持包含父目录
	//
	// 表情包目录示例:
	// left与right目录图片数量最大限制为各10张
	//├── preview.png # 表情预览文件,与表情数据无关,仅作为预览图用
	//│
	//├── left # 左眼表情数据
	//│   ├── 1.png
	//│   ├── 2.png
	//│   ├── 3.png
	//│   ├── 4.png
	//│   └── 5.png
	//│
	//└── right # 右眼表情数据
	//    ├── 1.png
	//    ├── 2.png
	//    ├── 3.png
	//    ├── 4.png
	//    └── 5.png
	//
	// 网关不包含当前方法,HTTP上传请使用以下接口
	// POST /api/v2/expression/upload_expression_file
	// Content-Type: application/x-www-form-urlencoded
	// Body:
	//   - name: String
	//   - e: File, e.g. Example.zip
	UploadExpressionFile(ctx context.Context, in *UploadExpressionFileRequest, opts ...grpc.CallOption) (*UploadExpressionFileResponse, error)
	// Rename 对已上传的表情进行重命名
	Rename(ctx context.Context, in *RenameRequest, opts ...grpc.CallOption) (*RenameResponse, error)
	// ListExpressions 获取表情列表
	ListExpressions(ctx context.Context, in *ListExpressionsRequest, opts ...grpc.CallOption) (*ListExpressionsResponse, error)
	// DeleteExpressions 删除表情列表
	DeleteExpressions(ctx context.Context, in *DeleteExpressionsRequest, opts ...grpc.CallOption) (*DeleteExpressionsResponse, error)
	// State 获取当前表情模块状态
	State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error)
	// Switch 控制表情的开关
	// 关闭时将表现为黑屏
	Switch(ctx context.Context, in *SwitchRequest, opts ...grpc.CallOption) (*SwitchResponse, error)
}

ExpressionServiceClient is the client API for ExpressionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ExpressionServiceServer

type ExpressionServiceServer interface {
	// PlayExpressions 播放表情组合
	//
	// 单套表情限制请参考UploadExpressionFile方法,
	// 更为复杂的表情设计可基于多个最小化表情进行组合
	PlayExpressions(context.Context, *PlayExpressionsRequest) (*PlayExpressionsResponse, error)
	// StopExpression 停止表情播放
	//
	// 此方法将表现为播放至当前帧终止,不会恢复为当前表情的首帧
	StopExpression(context.Context, *StopExpressionRequest) (*StopExpressionResponse, error)
	// UploadExpressionFile 上传表情文件
	//
	// 上传表情图片zip文件,用于构建新的表情
	//
	// 表情文件为zip格式数据,如Example.zip文件上传后该表情将命名为"Example",命名可通过Rename方法进行更改
	//
	// windows用户请在表情目录中选中preview.png, left目录,right目录,直接压缩为zip文件,不支持包含父目录
	//
	// 表情包目录示例:
	// left与right目录图片数量最大限制为各10张
	//├── preview.png # 表情预览文件,与表情数据无关,仅作为预览图用
	//│
	//├── left # 左眼表情数据
	//│   ├── 1.png
	//│   ├── 2.png
	//│   ├── 3.png
	//│   ├── 4.png
	//│   └── 5.png
	//│
	//└── right # 右眼表情数据
	//    ├── 1.png
	//    ├── 2.png
	//    ├── 3.png
	//    ├── 4.png
	//    └── 5.png
	//
	// 网关不包含当前方法,HTTP上传请使用以下接口
	// POST /api/v2/expression/upload_expression_file
	// Content-Type: application/x-www-form-urlencoded
	// Body:
	//   - name: String
	//   - e: File, e.g. Example.zip
	UploadExpressionFile(context.Context, *UploadExpressionFileRequest) (*UploadExpressionFileResponse, error)
	// Rename 对已上传的表情进行重命名
	Rename(context.Context, *RenameRequest) (*RenameResponse, error)
	// ListExpressions 获取表情列表
	ListExpressions(context.Context, *ListExpressionsRequest) (*ListExpressionsResponse, error)
	// DeleteExpressions 删除表情列表
	DeleteExpressions(context.Context, *DeleteExpressionsRequest) (*DeleteExpressionsResponse, error)
	// State 获取当前表情模块状态
	State(context.Context, *StateRequest) (*StateResponse, error)
	// Switch 控制表情的开关
	// 关闭时将表现为黑屏
	Switch(context.Context, *SwitchRequest) (*SwitchResponse, error)
}

ExpressionServiceServer is the server API for ExpressionService service.

type ListExpressionsRequest

type ListExpressionsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

获取表情数据请求

func (*ListExpressionsRequest) Descriptor

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

func (*ListExpressionsRequest) ProtoMessage

func (*ListExpressionsRequest) ProtoMessage()

func (*ListExpressionsRequest) Reset

func (m *ListExpressionsRequest) Reset()

func (*ListExpressionsRequest) String

func (m *ListExpressionsRequest) String() string

func (*ListExpressionsRequest) XXX_DiscardUnknown

func (m *ListExpressionsRequest) XXX_DiscardUnknown()

func (*ListExpressionsRequest) XXX_Marshal

func (m *ListExpressionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListExpressionsRequest) XXX_Merge

func (m *ListExpressionsRequest) XXX_Merge(src proto.Message)

func (*ListExpressionsRequest) XXX_Size

func (m *ListExpressionsRequest) XXX_Size() int

func (*ListExpressionsRequest) XXX_Unmarshal

func (m *ListExpressionsRequest) XXX_Unmarshal(b []byte) error

type ListExpressionsResponse

type ListExpressionsResponse struct {
	// 表情对象列表
	ExpressionsInfo      []*ExpressionInfo `protobuf:"bytes,1,rep,name=expressions_info,json=expressionsInfo,proto3" json:"expressions_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

获取表情数据结果

func (*ListExpressionsResponse) Descriptor

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

func (*ListExpressionsResponse) GetExpressionsInfo

func (m *ListExpressionsResponse) GetExpressionsInfo() []*ExpressionInfo

func (*ListExpressionsResponse) ProtoMessage

func (*ListExpressionsResponse) ProtoMessage()

func (*ListExpressionsResponse) Reset

func (m *ListExpressionsResponse) Reset()

func (*ListExpressionsResponse) String

func (m *ListExpressionsResponse) String() string

func (*ListExpressionsResponse) XXX_DiscardUnknown

func (m *ListExpressionsResponse) XXX_DiscardUnknown()

func (*ListExpressionsResponse) XXX_Marshal

func (m *ListExpressionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListExpressionsResponse) XXX_Merge

func (m *ListExpressionsResponse) XXX_Merge(src proto.Message)

func (*ListExpressionsResponse) XXX_Size

func (m *ListExpressionsResponse) XXX_Size() int

func (*ListExpressionsResponse) XXX_Unmarshal

func (m *ListExpressionsResponse) XXX_Unmarshal(b []byte) error

type PlayExpressionsRequest

type PlayExpressionsRequest struct {
	// 播放的表情对象列表
	// 可仅填入id项或表情名
	ExpressionsInfo []*ExpressionInfo `protobuf:"bytes,1,rep,name=expressions_info,json=expressionsInfo,proto3" json:"expressions_info,omitempty"`
	// 循环播放
	// 0: 持续循环
	LoopTimes uint32 `protobuf:"varint,2,opt,name=loop_times,json=loopTimes,proto3" json:"loop_times,omitempty"`
	// 切换间隔ms
	// 每套表情间的间隔
	Duration             uint32   `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

播放表情请求

func (*PlayExpressionsRequest) Descriptor

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

func (*PlayExpressionsRequest) GetDuration

func (m *PlayExpressionsRequest) GetDuration() uint32

func (*PlayExpressionsRequest) GetExpressionsInfo

func (m *PlayExpressionsRequest) GetExpressionsInfo() []*ExpressionInfo

func (*PlayExpressionsRequest) GetLoopTimes

func (m *PlayExpressionsRequest) GetLoopTimes() uint32

func (*PlayExpressionsRequest) ProtoMessage

func (*PlayExpressionsRequest) ProtoMessage()

func (*PlayExpressionsRequest) Reset

func (m *PlayExpressionsRequest) Reset()

func (*PlayExpressionsRequest) String

func (m *PlayExpressionsRequest) String() string

func (*PlayExpressionsRequest) XXX_DiscardUnknown

func (m *PlayExpressionsRequest) XXX_DiscardUnknown()

func (*PlayExpressionsRequest) XXX_Marshal

func (m *PlayExpressionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayExpressionsRequest) XXX_Merge

func (m *PlayExpressionsRequest) XXX_Merge(src proto.Message)

func (*PlayExpressionsRequest) XXX_Size

func (m *PlayExpressionsRequest) XXX_Size() int

func (*PlayExpressionsRequest) XXX_Unmarshal

func (m *PlayExpressionsRequest) XXX_Unmarshal(b []byte) error

type PlayExpressionsResponse

type PlayExpressionsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

播放表情结果

func (*PlayExpressionsResponse) Descriptor

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

func (*PlayExpressionsResponse) ProtoMessage

func (*PlayExpressionsResponse) ProtoMessage()

func (*PlayExpressionsResponse) Reset

func (m *PlayExpressionsResponse) Reset()

func (*PlayExpressionsResponse) String

func (m *PlayExpressionsResponse) String() string

func (*PlayExpressionsResponse) XXX_DiscardUnknown

func (m *PlayExpressionsResponse) XXX_DiscardUnknown()

func (*PlayExpressionsResponse) XXX_Marshal

func (m *PlayExpressionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayExpressionsResponse) XXX_Merge

func (m *PlayExpressionsResponse) XXX_Merge(src proto.Message)

func (*PlayExpressionsResponse) XXX_Size

func (m *PlayExpressionsResponse) XXX_Size() int

func (*PlayExpressionsResponse) XXX_Unmarshal

func (m *PlayExpressionsResponse) XXX_Unmarshal(b []byte) error

type RenameRequest

type RenameRequest struct {
	// 表情id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// 新表情名
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

表情重命名请求

func (*RenameRequest) Descriptor

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

func (*RenameRequest) GetId

func (m *RenameRequest) GetId() string

func (*RenameRequest) GetName

func (m *RenameRequest) GetName() string

func (*RenameRequest) ProtoMessage

func (*RenameRequest) ProtoMessage()

func (*RenameRequest) Reset

func (m *RenameRequest) Reset()

func (*RenameRequest) String

func (m *RenameRequest) String() string

func (*RenameRequest) XXX_DiscardUnknown

func (m *RenameRequest) XXX_DiscardUnknown()

func (*RenameRequest) XXX_Marshal

func (m *RenameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenameRequest) XXX_Merge

func (m *RenameRequest) XXX_Merge(src proto.Message)

func (*RenameRequest) XXX_Size

func (m *RenameRequest) XXX_Size() int

func (*RenameRequest) XXX_Unmarshal

func (m *RenameRequest) XXX_Unmarshal(b []byte) error

type RenameResponse

type RenameResponse struct {
	// 表情id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// 表情名
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

表情重命名结果

func (*RenameResponse) Descriptor

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

func (*RenameResponse) GetId

func (m *RenameResponse) GetId() string

func (*RenameResponse) GetName

func (m *RenameResponse) GetName() string

func (*RenameResponse) ProtoMessage

func (*RenameResponse) ProtoMessage()

func (*RenameResponse) Reset

func (m *RenameResponse) Reset()

func (*RenameResponse) String

func (m *RenameResponse) String() string

func (*RenameResponse) XXX_DiscardUnknown

func (m *RenameResponse) XXX_DiscardUnknown()

func (*RenameResponse) XXX_Marshal

func (m *RenameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenameResponse) XXX_Merge

func (m *RenameResponse) XXX_Merge(src proto.Message)

func (*RenameResponse) XXX_Size

func (m *RenameResponse) XXX_Size() int

func (*RenameResponse) XXX_Unmarshal

func (m *RenameResponse) XXX_Unmarshal(b []byte) error

type StateRequest

type StateRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StateRequest) Descriptor

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

func (*StateRequest) ProtoMessage

func (*StateRequest) ProtoMessage()

func (*StateRequest) Reset

func (m *StateRequest) Reset()

func (*StateRequest) String

func (m *StateRequest) String() string

func (*StateRequest) XXX_DiscardUnknown

func (m *StateRequest) XXX_DiscardUnknown()

func (*StateRequest) XXX_Marshal

func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StateRequest) XXX_Merge

func (m *StateRequest) XXX_Merge(src proto.Message)

func (*StateRequest) XXX_Size

func (m *StateRequest) XXX_Size() int

func (*StateRequest) XXX_Unmarshal

func (m *StateRequest) XXX_Unmarshal(b []byte) error

type StateResponse

type StateResponse struct {
	// 当前是否启用
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// 当前是否在播放中
	IsPlaying            bool     `protobuf:"varint,2,opt,name=is_playing,json=isPlaying,proto3" json:"is_playing,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StateResponse) Descriptor

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

func (*StateResponse) GetIsActive

func (m *StateResponse) GetIsActive() bool

func (*StateResponse) GetIsPlaying

func (m *StateResponse) GetIsPlaying() bool

func (*StateResponse) ProtoMessage

func (*StateResponse) ProtoMessage()

func (*StateResponse) Reset

func (m *StateResponse) Reset()

func (*StateResponse) String

func (m *StateResponse) String() string

func (*StateResponse) XXX_DiscardUnknown

func (m *StateResponse) XXX_DiscardUnknown()

func (*StateResponse) XXX_Marshal

func (m *StateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StateResponse) XXX_Merge

func (m *StateResponse) XXX_Merge(src proto.Message)

func (*StateResponse) XXX_Size

func (m *StateResponse) XXX_Size() int

func (*StateResponse) XXX_Unmarshal

func (m *StateResponse) XXX_Unmarshal(b []byte) error

type StopExpressionRequest

type StopExpressionRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

停止表情请求

func (*StopExpressionRequest) Descriptor

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

func (*StopExpressionRequest) ProtoMessage

func (*StopExpressionRequest) ProtoMessage()

func (*StopExpressionRequest) Reset

func (m *StopExpressionRequest) Reset()

func (*StopExpressionRequest) String

func (m *StopExpressionRequest) String() string

func (*StopExpressionRequest) XXX_DiscardUnknown

func (m *StopExpressionRequest) XXX_DiscardUnknown()

func (*StopExpressionRequest) XXX_Marshal

func (m *StopExpressionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopExpressionRequest) XXX_Merge

func (m *StopExpressionRequest) XXX_Merge(src proto.Message)

func (*StopExpressionRequest) XXX_Size

func (m *StopExpressionRequest) XXX_Size() int

func (*StopExpressionRequest) XXX_Unmarshal

func (m *StopExpressionRequest) XXX_Unmarshal(b []byte) error

type StopExpressionResponse

type StopExpressionResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

停止表情结果

func (*StopExpressionResponse) Descriptor

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

func (*StopExpressionResponse) ProtoMessage

func (*StopExpressionResponse) ProtoMessage()

func (*StopExpressionResponse) Reset

func (m *StopExpressionResponse) Reset()

func (*StopExpressionResponse) String

func (m *StopExpressionResponse) String() string

func (*StopExpressionResponse) XXX_DiscardUnknown

func (m *StopExpressionResponse) XXX_DiscardUnknown()

func (*StopExpressionResponse) XXX_Marshal

func (m *StopExpressionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopExpressionResponse) XXX_Merge

func (m *StopExpressionResponse) XXX_Merge(src proto.Message)

func (*StopExpressionResponse) XXX_Size

func (m *StopExpressionResponse) XXX_Size() int

func (*StopExpressionResponse) XXX_Unmarshal

func (m *StopExpressionResponse) XXX_Unmarshal(b []byte) error

type SwitchRequest

type SwitchRequest struct {
	// 启用与关闭
	Active               bool     `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwitchRequest) Descriptor

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

func (*SwitchRequest) GetActive

func (m *SwitchRequest) GetActive() bool

func (*SwitchRequest) ProtoMessage

func (*SwitchRequest) ProtoMessage()

func (*SwitchRequest) Reset

func (m *SwitchRequest) Reset()

func (*SwitchRequest) String

func (m *SwitchRequest) String() string

func (*SwitchRequest) XXX_DiscardUnknown

func (m *SwitchRequest) XXX_DiscardUnknown()

func (*SwitchRequest) XXX_Marshal

func (m *SwitchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwitchRequest) XXX_Merge

func (m *SwitchRequest) XXX_Merge(src proto.Message)

func (*SwitchRequest) XXX_Size

func (m *SwitchRequest) XXX_Size() int

func (*SwitchRequest) XXX_Unmarshal

func (m *SwitchRequest) XXX_Unmarshal(b []byte) error

type SwitchResponse

type SwitchResponse struct {
	// 当前是否启用
	IsActive             bool     `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwitchResponse) Descriptor

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

func (*SwitchResponse) GetIsActive

func (m *SwitchResponse) GetIsActive() bool

func (*SwitchResponse) ProtoMessage

func (*SwitchResponse) ProtoMessage()

func (*SwitchResponse) Reset

func (m *SwitchResponse) Reset()

func (*SwitchResponse) String

func (m *SwitchResponse) String() string

func (*SwitchResponse) XXX_DiscardUnknown

func (m *SwitchResponse) XXX_DiscardUnknown()

func (*SwitchResponse) XXX_Marshal

func (m *SwitchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwitchResponse) XXX_Merge

func (m *SwitchResponse) XXX_Merge(src proto.Message)

func (*SwitchResponse) XXX_Size

func (m *SwitchResponse) XXX_Size() int

func (*SwitchResponse) XXX_Unmarshal

func (m *SwitchResponse) XXX_Unmarshal(b []byte) error

type UnimplementedExpressionServiceServer

type UnimplementedExpressionServiceServer struct {
}

UnimplementedExpressionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedExpressionServiceServer) DeleteExpressions

func (*UnimplementedExpressionServiceServer) ListExpressions

func (*UnimplementedExpressionServiceServer) PlayExpressions

func (*UnimplementedExpressionServiceServer) Rename

func (*UnimplementedExpressionServiceServer) State

func (*UnimplementedExpressionServiceServer) StopExpression

func (*UnimplementedExpressionServiceServer) Switch

func (*UnimplementedExpressionServiceServer) UploadExpressionFile

type UploadExpressionFileRequest

type UploadExpressionFileRequest struct {
	// 表情名
	// 为空时将产生随机表情名
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 表情zip文件
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

上传表情请求

func (*UploadExpressionFileRequest) Descriptor

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

func (*UploadExpressionFileRequest) GetData

func (m *UploadExpressionFileRequest) GetData() []byte

func (*UploadExpressionFileRequest) GetName

func (m *UploadExpressionFileRequest) GetName() string

func (*UploadExpressionFileRequest) ProtoMessage

func (*UploadExpressionFileRequest) ProtoMessage()

func (*UploadExpressionFileRequest) Reset

func (m *UploadExpressionFileRequest) Reset()

func (*UploadExpressionFileRequest) String

func (m *UploadExpressionFileRequest) String() string

func (*UploadExpressionFileRequest) XXX_DiscardUnknown

func (m *UploadExpressionFileRequest) XXX_DiscardUnknown()

func (*UploadExpressionFileRequest) XXX_Marshal

func (m *UploadExpressionFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UploadExpressionFileRequest) XXX_Merge

func (m *UploadExpressionFileRequest) XXX_Merge(src proto.Message)

func (*UploadExpressionFileRequest) XXX_Size

func (m *UploadExpressionFileRequest) XXX_Size() int

func (*UploadExpressionFileRequest) XXX_Unmarshal

func (m *UploadExpressionFileRequest) XXX_Unmarshal(b []byte) error

type UploadExpressionFileResponse

type UploadExpressionFileResponse struct {
	// 表情对象
	ExpressionInfo       *ExpressionInfo `protobuf:"bytes,1,opt,name=expression_info,json=expressionInfo,proto3" json:"expression_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

上传表情结果

func (*UploadExpressionFileResponse) Descriptor

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

func (*UploadExpressionFileResponse) GetExpressionInfo

func (m *UploadExpressionFileResponse) GetExpressionInfo() *ExpressionInfo

func (*UploadExpressionFileResponse) ProtoMessage

func (*UploadExpressionFileResponse) ProtoMessage()

func (*UploadExpressionFileResponse) Reset

func (m *UploadExpressionFileResponse) Reset()

func (*UploadExpressionFileResponse) String

func (*UploadExpressionFileResponse) XXX_DiscardUnknown

func (m *UploadExpressionFileResponse) XXX_DiscardUnknown()

func (*UploadExpressionFileResponse) XXX_Marshal

func (m *UploadExpressionFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UploadExpressionFileResponse) XXX_Merge

func (m *UploadExpressionFileResponse) XXX_Merge(src proto.Message)

func (*UploadExpressionFileResponse) XXX_Size

func (m *UploadExpressionFileResponse) XXX_Size() int

func (*UploadExpressionFileResponse) XXX_Unmarshal

func (m *UploadExpressionFileResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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