Documentation ¶
Overview ¶
Package francisar_chatgpt_v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterFrancisarChatgptHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFrancisarChatgptHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FrancisarChatgptClient) error
- func RegisterFrancisarChatgptHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFrancisarChatgptHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FrancisarChatgptServer) error
- func RegisterFrancisarChatgptServer(s *grpc.Server, srv FrancisarChatgptServer)
- type DemoRequest
- func (this *DemoRequest) Compare(that interface{}) int
- func (*DemoRequest) Descriptor() ([]byte, []int)
- func (this *DemoRequest) Equal(that interface{}) bool
- func (m *DemoRequest) GetPing() *api.ExampleRequest
- func (m *DemoRequest) GetUuid() string
- func (m *DemoRequest) Marshal() (dAtA []byte, err error)
- func (m *DemoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DemoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DemoRequest) ProtoMessage()
- func (m *DemoRequest) Reset()
- func (m *DemoRequest) Size() (n int)
- func (m *DemoRequest) String() string
- func (m *DemoRequest) Unmarshal(dAtA []byte) error
- func (m *DemoRequest) XXX_DiscardUnknown()
- func (m *DemoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DemoRequest) XXX_Merge(src proto.Message)
- func (m *DemoRequest) XXX_Size() int
- func (m *DemoRequest) XXX_Unmarshal(b []byte) error
- type DemoResponse
- func (this *DemoResponse) Compare(that interface{}) int
- func (*DemoResponse) Descriptor() ([]byte, []int)
- func (this *DemoResponse) Equal(that interface{}) bool
- func (m *DemoResponse) GetContent() []*api.ExampleResponse
- func (m *DemoResponse) GetEmpty() *types.Empty
- func (m *DemoResponse) GetPing() *api.ExampleResponse
- func (m *DemoResponse) GetPong() *DemoResponse_Pong
- func (m *DemoResponse) Marshal() (dAtA []byte, err error)
- func (m *DemoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DemoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DemoResponse) ProtoMessage()
- func (m *DemoResponse) Reset()
- func (m *DemoResponse) Size() (n int)
- func (m *DemoResponse) String() string
- func (m *DemoResponse) Unmarshal(dAtA []byte) error
- func (m *DemoResponse) XXX_DiscardUnknown()
- func (m *DemoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DemoResponse) XXX_Merge(src proto.Message)
- func (m *DemoResponse) XXX_Size() int
- func (m *DemoResponse) XXX_Unmarshal(b []byte) error
- type DemoResponse_Pong
- func (this *DemoResponse_Pong) Compare(that interface{}) int
- func (*DemoResponse_Pong) Descriptor() ([]byte, []int)
- func (this *DemoResponse_Pong) Equal(that interface{}) bool
- func (m *DemoResponse_Pong) GetPong() *api.ExampleResponse
- func (m *DemoResponse_Pong) GetUuid() string
- func (m *DemoResponse_Pong) Marshal() (dAtA []byte, err error)
- func (m *DemoResponse_Pong) MarshalTo(dAtA []byte) (int, error)
- func (m *DemoResponse_Pong) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DemoResponse_Pong) ProtoMessage()
- func (m *DemoResponse_Pong) Reset()
- func (m *DemoResponse_Pong) Size() (n int)
- func (m *DemoResponse_Pong) String() string
- func (m *DemoResponse_Pong) Unmarshal(dAtA []byte) error
- func (m *DemoResponse_Pong) XXX_DiscardUnknown()
- func (m *DemoResponse_Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DemoResponse_Pong) XXX_Merge(src proto.Message)
- func (m *DemoResponse_Pong) XXX_Size() int
- func (m *DemoResponse_Pong) XXX_Unmarshal(b []byte) error
- type FrancisarChatgptClient
- type FrancisarChatgptServer
- type UnimplementedFrancisarChatgptServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterFrancisarChatgptHandler ¶
func RegisterFrancisarChatgptHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFrancisarChatgptHandler registers the http handlers for service FrancisarChatgpt to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFrancisarChatgptHandlerClient ¶
func RegisterFrancisarChatgptHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FrancisarChatgptClient) error
RegisterFrancisarChatgptHandlerClient registers the http handlers for service FrancisarChatgpt to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FrancisarChatgptClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FrancisarChatgptClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FrancisarChatgptClient" to call the correct interceptors.
func RegisterFrancisarChatgptHandlerFromEndpoint ¶
func RegisterFrancisarChatgptHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFrancisarChatgptHandlerFromEndpoint is same as RegisterFrancisarChatgptHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFrancisarChatgptHandlerServer ¶
func RegisterFrancisarChatgptHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FrancisarChatgptServer) error
RegisterFrancisarChatgptHandlerServer registers the http handlers for service FrancisarChatgpt to "mux". UnaryRPC :call FrancisarChatgptServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFrancisarChatgptHandlerFromEndpoint instead.
func RegisterFrancisarChatgptServer ¶
func RegisterFrancisarChatgptServer(s *grpc.Server, srv FrancisarChatgptServer)
Types ¶
type DemoRequest ¶
type DemoRequest struct { // UUID 资源编号 Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // Ping 资源内容 Ping *api.ExampleRequest `protobuf:"bytes,2,opt,name=ping,proto3" json:"ping,omitempty"` }
func (*DemoRequest) Compare ¶
func (this *DemoRequest) Compare(that interface{}) int
func (*DemoRequest) Descriptor ¶
func (*DemoRequest) Descriptor() ([]byte, []int)
func (*DemoRequest) Equal ¶
func (this *DemoRequest) Equal(that interface{}) bool
func (*DemoRequest) GetPing ¶
func (m *DemoRequest) GetPing() *api.ExampleRequest
func (*DemoRequest) GetUuid ¶
func (m *DemoRequest) GetUuid() string
func (*DemoRequest) Marshal ¶
func (m *DemoRequest) Marshal() (dAtA []byte, err error)
func (*DemoRequest) MarshalToSizedBuffer ¶
func (m *DemoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DemoRequest) ProtoMessage ¶
func (*DemoRequest) ProtoMessage()
func (*DemoRequest) Reset ¶
func (m *DemoRequest) Reset()
func (*DemoRequest) Size ¶
func (m *DemoRequest) Size() (n int)
func (*DemoRequest) String ¶
func (m *DemoRequest) String() string
func (*DemoRequest) Unmarshal ¶
func (m *DemoRequest) Unmarshal(dAtA []byte) error
func (*DemoRequest) XXX_DiscardUnknown ¶
func (m *DemoRequest) XXX_DiscardUnknown()
func (*DemoRequest) XXX_Marshal ¶
func (m *DemoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DemoRequest) XXX_Merge ¶
func (m *DemoRequest) XXX_Merge(src proto.Message)
func (*DemoRequest) XXX_Size ¶
func (m *DemoRequest) XXX_Size() int
func (*DemoRequest) XXX_Unmarshal ¶
func (m *DemoRequest) XXX_Unmarshal(b []byte) error
type DemoResponse ¶
type DemoResponse struct { // Pong 返回创建的资源 Pong *DemoResponse_Pong `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` // Content 多个资源响应内容(无分页属性) Content []*api.ExampleResponse `protobuf:"bytes,2,rep,name=content,proto3" json:"content,omitempty"` // Ping 返回更新的资源 Ping *api.ExampleResponse `protobuf:"bytes,3,opt,name=ping,proto3" json:"ping,omitempty"` // Empty 返回空的内容 Empty *types.Empty `protobuf:"bytes,4,opt,name=empty,proto3" json:"empty,omitempty"` }
func (*DemoResponse) Compare ¶
func (this *DemoResponse) Compare(that interface{}) int
func (*DemoResponse) Descriptor ¶
func (*DemoResponse) Descriptor() ([]byte, []int)
func (*DemoResponse) Equal ¶
func (this *DemoResponse) Equal(that interface{}) bool
func (*DemoResponse) GetContent ¶
func (m *DemoResponse) GetContent() []*api.ExampleResponse
func (*DemoResponse) GetEmpty ¶
func (m *DemoResponse) GetEmpty() *types.Empty
func (*DemoResponse) GetPing ¶
func (m *DemoResponse) GetPing() *api.ExampleResponse
func (*DemoResponse) GetPong ¶
func (m *DemoResponse) GetPong() *DemoResponse_Pong
func (*DemoResponse) Marshal ¶
func (m *DemoResponse) Marshal() (dAtA []byte, err error)
func (*DemoResponse) MarshalToSizedBuffer ¶
func (m *DemoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DemoResponse) ProtoMessage ¶
func (*DemoResponse) ProtoMessage()
func (*DemoResponse) Reset ¶
func (m *DemoResponse) Reset()
func (*DemoResponse) Size ¶
func (m *DemoResponse) Size() (n int)
func (*DemoResponse) String ¶
func (m *DemoResponse) String() string
func (*DemoResponse) Unmarshal ¶
func (m *DemoResponse) Unmarshal(dAtA []byte) error
func (*DemoResponse) XXX_DiscardUnknown ¶
func (m *DemoResponse) XXX_DiscardUnknown()
func (*DemoResponse) XXX_Marshal ¶
func (m *DemoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DemoResponse) XXX_Merge ¶
func (m *DemoResponse) XXX_Merge(src proto.Message)
func (*DemoResponse) XXX_Size ¶
func (m *DemoResponse) XXX_Size() int
func (*DemoResponse) XXX_Unmarshal ¶
func (m *DemoResponse) XXX_Unmarshal(b []byte) error
type DemoResponse_Pong ¶
type DemoResponse_Pong struct { // UUID 资源编号 Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // Pong 单个资源响应内容 Pong *api.ExampleResponse `protobuf:"bytes,2,opt,name=pong,proto3" json:"pong,omitempty"` }
func (*DemoResponse_Pong) Compare ¶
func (this *DemoResponse_Pong) Compare(that interface{}) int
func (*DemoResponse_Pong) Descriptor ¶
func (*DemoResponse_Pong) Descriptor() ([]byte, []int)
func (*DemoResponse_Pong) Equal ¶
func (this *DemoResponse_Pong) Equal(that interface{}) bool
func (*DemoResponse_Pong) GetPong ¶
func (m *DemoResponse_Pong) GetPong() *api.ExampleResponse
func (*DemoResponse_Pong) GetUuid ¶
func (m *DemoResponse_Pong) GetUuid() string
func (*DemoResponse_Pong) Marshal ¶
func (m *DemoResponse_Pong) Marshal() (dAtA []byte, err error)
func (*DemoResponse_Pong) MarshalTo ¶
func (m *DemoResponse_Pong) MarshalTo(dAtA []byte) (int, error)
func (*DemoResponse_Pong) MarshalToSizedBuffer ¶
func (m *DemoResponse_Pong) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DemoResponse_Pong) ProtoMessage ¶
func (*DemoResponse_Pong) ProtoMessage()
func (*DemoResponse_Pong) Reset ¶
func (m *DemoResponse_Pong) Reset()
func (*DemoResponse_Pong) Size ¶
func (m *DemoResponse_Pong) Size() (n int)
func (*DemoResponse_Pong) String ¶
func (m *DemoResponse_Pong) String() string
func (*DemoResponse_Pong) Unmarshal ¶
func (m *DemoResponse_Pong) Unmarshal(dAtA []byte) error
func (*DemoResponse_Pong) XXX_DiscardUnknown ¶
func (m *DemoResponse_Pong) XXX_DiscardUnknown()
func (*DemoResponse_Pong) XXX_Marshal ¶
func (m *DemoResponse_Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DemoResponse_Pong) XXX_Merge ¶
func (m *DemoResponse_Pong) XXX_Merge(src proto.Message)
func (*DemoResponse_Pong) XXX_Size ¶
func (m *DemoResponse_Pong) XXX_Size() int
func (*DemoResponse_Pong) XXX_Unmarshal ¶
func (m *DemoResponse_Pong) XXX_Unmarshal(b []byte) error
type FrancisarChatgptClient ¶
type FrancisarChatgptClient interface { HealthCheck(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) Demo(ctx context.Context, in *DemoRequest, opts ...grpc.CallOption) (*DemoResponse, error) }
FrancisarChatgptClient is the client API for FrancisarChatgpt service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFrancisarChatgptClient ¶
func NewFrancisarChatgptClient(cc *grpc.ClientConn) FrancisarChatgptClient
type FrancisarChatgptServer ¶
type FrancisarChatgptServer interface { HealthCheck(context.Context, *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error) Demo(context.Context, *DemoRequest) (*DemoResponse, error) }
FrancisarChatgptServer is the server API for FrancisarChatgpt service.
type UnimplementedFrancisarChatgptServer ¶
type UnimplementedFrancisarChatgptServer struct { }
UnimplementedFrancisarChatgptServer can be embedded to have forward compatible implementations.
func (*UnimplementedFrancisarChatgptServer) Demo ¶
func (*UnimplementedFrancisarChatgptServer) Demo(ctx context.Context, req *DemoRequest) (*DemoResponse, error)
func (*UnimplementedFrancisarChatgptServer) HealthCheck ¶
func (*UnimplementedFrancisarChatgptServer) HealthCheck(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)