Documentation
¶
Overview ¶
Package aasv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAaServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAaServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AaServiceClient) error
- func RegisterAaServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAaServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AaServiceServer) error
- func RegisterAaServiceServer(s grpc.ServiceRegistrar, srv AaServiceServer)
- type Aa
- func (*Aa) Descriptor() ([]byte, []int)deprecated
- func (x *Aa) GetCategory() int32
- func (x *Aa) GetCharges() int32
- func (x *Aa) GetClasses() int32
- func (x *Aa) GetDeities() int32
- func (x *Aa) GetDrakkinHeritage() int32
- func (x *Aa) GetEnabled() bool
- func (x *Aa) GetFirstRankId() int32
- func (x *Aa) GetGrantOnly() bool
- func (x *Aa) GetId() int32
- func (x *Aa) GetName() string
- func (x *Aa) GetRaces() int32
- func (x *Aa) GetResetOnDeath() bool
- func (x *Aa) GetStatus() int32
- func (x *Aa) GetType() int32
- func (*Aa) ProtoMessage()
- func (x *Aa) ProtoReflect() protoreflect.Message
- func (x *Aa) Reset()
- func (x *Aa) String() string
- type AaServiceClient
- type AaServiceServer
- type AaService_ListAasClient
- type AaService_ListAasServer
- type CreateAaRequest
- type CreateAaResponse
- type DeleteAaRequest
- type DeleteAaResponse
- type GetAaRequest
- type GetAaResponse
- type ListAasRequest
- type ListAasResponse
- type UnimplementedAaServiceServer
- func (UnimplementedAaServiceServer) CreateAa(context.Context, *CreateAaRequest) (*CreateAaResponse, error)
- func (UnimplementedAaServiceServer) DeleteAa(context.Context, *DeleteAaRequest) (*DeleteAaResponse, error)
- func (UnimplementedAaServiceServer) GetAa(context.Context, *GetAaRequest) (*GetAaResponse, error)
- func (UnimplementedAaServiceServer) ListAas(*ListAasRequest, AaService_ListAasServer) error
- func (UnimplementedAaServiceServer) UpdateAa(context.Context, *UpdateAaRequest) (*UpdateAaResponse, error)
- type UnsafeAaServiceServer
- type UpdateAaRequest
- func (*UpdateAaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAaRequest) GetAa() *Aa
- func (x *UpdateAaRequest) GetId() int32
- func (*UpdateAaRequest) ProtoMessage()
- func (x *UpdateAaRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAaRequest) Reset()
- func (x *UpdateAaRequest) String() string
- type UpdateAaResponse
Constants ¶
const ( AaService_ListAas_FullMethodName = "/aas.v1.AaService/ListAas" AaService_CreateAa_FullMethodName = "/aas.v1.AaService/CreateAa" AaService_GetAa_FullMethodName = "/aas.v1.AaService/GetAa" AaService_UpdateAa_FullMethodName = "/aas.v1.AaService/UpdateAa" AaService_DeleteAa_FullMethodName = "/aas.v1.AaService/DeleteAa" )
Variables ¶
var AaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aas.v1.AaService", HandlerType: (*AaServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAa", Handler: _AaService_CreateAa_Handler, }, { MethodName: "GetAa", Handler: _AaService_GetAa_Handler, }, { MethodName: "UpdateAa", Handler: _AaService_UpdateAa_Handler, }, { MethodName: "DeleteAa", Handler: _AaService_DeleteAa_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListAas", Handler: _AaService_ListAas_Handler, ServerStreams: true, }, }, Metadata: "aas/v1/aas.proto", }
AaService_ServiceDesc is the grpc.ServiceDesc for AaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_aas_v1_aas_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAaServiceHandler ¶
func RegisterAaServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAaServiceHandler registers the http handlers for service AaService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAaServiceHandlerClient ¶
func RegisterAaServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AaServiceClient) error
RegisterAaServiceHandlerClient registers the http handlers for service AaService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AaServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AaServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AaServiceClient" to call the correct interceptors.
func RegisterAaServiceHandlerFromEndpoint ¶
func RegisterAaServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAaServiceHandlerFromEndpoint is same as RegisterAaServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAaServiceHandlerServer ¶
func RegisterAaServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AaServiceServer) error
RegisterAaServiceHandlerServer registers the http handlers for service AaService to "mux". UnaryRPC :call AaServiceServer 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 RegisterAaServiceHandlerFromEndpoint instead.
func RegisterAaServiceServer ¶
func RegisterAaServiceServer(s grpc.ServiceRegistrar, srv AaServiceServer)
Types ¶
type Aa ¶
type Aa struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Category int32 `protobuf:"varint,3,opt,name=category,proto3" json:"category,omitempty"` Classes int32 `protobuf:"varint,4,opt,name=classes,proto3" json:"classes,omitempty"` Races int32 `protobuf:"varint,5,opt,name=races,proto3" json:"races,omitempty"` DrakkinHeritage int32 `protobuf:"varint,6,opt,name=drakkin_heritage,json=drakkinHeritage,proto3" json:"drakkin_heritage,omitempty"` Deities int32 `protobuf:"varint,7,opt,name=deities,proto3" json:"deities,omitempty"` Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` Type int32 `protobuf:"varint,9,opt,name=type,proto3" json:"type,omitempty"` Charges int32 `protobuf:"varint,10,opt,name=charges,proto3" json:"charges,omitempty"` GrantOnly bool `protobuf:"varint,11,opt,name=grant_only,json=grantOnly,proto3" json:"grant_only,omitempty"` FirstRankId int32 `protobuf:"varint,12,opt,name=first_rank_id,json=firstRankId,proto3" json:"first_rank_id,omitempty"` Enabled bool `protobuf:"varint,13,opt,name=enabled,proto3" json:"enabled,omitempty"` ResetOnDeath bool `protobuf:"varint,14,opt,name=reset_on_death,json=resetOnDeath,proto3" json:"reset_on_death,omitempty"` // contains filtered or unexported fields }
func (*Aa) Descriptor
deprecated
func (*Aa) GetCategory ¶
func (*Aa) GetCharges ¶
func (*Aa) GetClasses ¶
func (*Aa) GetDeities ¶
func (*Aa) GetDrakkinHeritage ¶
func (*Aa) GetEnabled ¶
func (*Aa) GetFirstRankId ¶
func (*Aa) GetGrantOnly ¶
func (*Aa) GetResetOnDeath ¶
func (*Aa) ProtoMessage ¶
func (*Aa) ProtoMessage()
func (*Aa) ProtoReflect ¶
func (x *Aa) ProtoReflect() protoreflect.Message
type AaServiceClient ¶
type AaServiceClient interface { ListAas(ctx context.Context, in *ListAasRequest, opts ...grpc.CallOption) (AaService_ListAasClient, error) CreateAa(ctx context.Context, in *CreateAaRequest, opts ...grpc.CallOption) (*CreateAaResponse, error) GetAa(ctx context.Context, in *GetAaRequest, opts ...grpc.CallOption) (*GetAaResponse, error) UpdateAa(ctx context.Context, in *UpdateAaRequest, opts ...grpc.CallOption) (*UpdateAaResponse, error) DeleteAa(ctx context.Context, in *DeleteAaRequest, opts ...grpc.CallOption) (*DeleteAaResponse, error) }
AaServiceClient is the client API for AaService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAaServiceClient ¶
func NewAaServiceClient(cc grpc.ClientConnInterface) AaServiceClient
type AaServiceServer ¶
type AaServiceServer interface { ListAas(*ListAasRequest, AaService_ListAasServer) error CreateAa(context.Context, *CreateAaRequest) (*CreateAaResponse, error) GetAa(context.Context, *GetAaRequest) (*GetAaResponse, error) UpdateAa(context.Context, *UpdateAaRequest) (*UpdateAaResponse, error) DeleteAa(context.Context, *DeleteAaRequest) (*DeleteAaResponse, error) }
AaServiceServer is the server API for AaService service. All implementations should embed UnimplementedAaServiceServer for forward compatibility
type AaService_ListAasClient ¶
type AaService_ListAasClient interface { Recv() (*ListAasResponse, error) grpc.ClientStream }
type AaService_ListAasServer ¶
type AaService_ListAasServer interface { Send(*ListAasResponse) error grpc.ServerStream }
type CreateAaRequest ¶
type CreateAaRequest struct { Aa *Aa `protobuf:"bytes,1,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*CreateAaRequest) Descriptor
deprecated
func (*CreateAaRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAaRequest.ProtoReflect.Descriptor instead.
func (*CreateAaRequest) GetAa ¶
func (x *CreateAaRequest) GetAa() *Aa
func (*CreateAaRequest) ProtoMessage ¶
func (*CreateAaRequest) ProtoMessage()
func (*CreateAaRequest) ProtoReflect ¶
func (x *CreateAaRequest) ProtoReflect() protoreflect.Message
func (*CreateAaRequest) Reset ¶
func (x *CreateAaRequest) Reset()
func (*CreateAaRequest) String ¶
func (x *CreateAaRequest) String() string
type CreateAaResponse ¶
type CreateAaResponse struct { Aa *Aa `protobuf:"bytes,1,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*CreateAaResponse) Descriptor
deprecated
func (*CreateAaResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAaResponse.ProtoReflect.Descriptor instead.
func (*CreateAaResponse) GetAa ¶
func (x *CreateAaResponse) GetAa() *Aa
func (*CreateAaResponse) ProtoMessage ¶
func (*CreateAaResponse) ProtoMessage()
func (*CreateAaResponse) ProtoReflect ¶
func (x *CreateAaResponse) ProtoReflect() protoreflect.Message
func (*CreateAaResponse) Reset ¶
func (x *CreateAaResponse) Reset()
func (*CreateAaResponse) String ¶
func (x *CreateAaResponse) String() string
type DeleteAaRequest ¶
type DeleteAaRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAaRequest) Descriptor
deprecated
func (*DeleteAaRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAaRequest.ProtoReflect.Descriptor instead.
func (*DeleteAaRequest) GetId ¶
func (x *DeleteAaRequest) GetId() int32
func (*DeleteAaRequest) ProtoMessage ¶
func (*DeleteAaRequest) ProtoMessage()
func (*DeleteAaRequest) ProtoReflect ¶
func (x *DeleteAaRequest) ProtoReflect() protoreflect.Message
func (*DeleteAaRequest) Reset ¶
func (x *DeleteAaRequest) Reset()
func (*DeleteAaRequest) String ¶
func (x *DeleteAaRequest) String() string
type DeleteAaResponse ¶
type DeleteAaResponse struct { Aa *Aa `protobuf:"bytes,1,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*DeleteAaResponse) Descriptor
deprecated
func (*DeleteAaResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAaResponse.ProtoReflect.Descriptor instead.
func (*DeleteAaResponse) GetAa ¶
func (x *DeleteAaResponse) GetAa() *Aa
func (*DeleteAaResponse) ProtoMessage ¶
func (*DeleteAaResponse) ProtoMessage()
func (*DeleteAaResponse) ProtoReflect ¶
func (x *DeleteAaResponse) ProtoReflect() protoreflect.Message
func (*DeleteAaResponse) Reset ¶
func (x *DeleteAaResponse) Reset()
func (*DeleteAaResponse) String ¶
func (x *DeleteAaResponse) String() string
type GetAaRequest ¶
type GetAaRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAaRequest) Descriptor
deprecated
func (*GetAaRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAaRequest.ProtoReflect.Descriptor instead.
func (*GetAaRequest) GetId ¶
func (x *GetAaRequest) GetId() int32
func (*GetAaRequest) ProtoMessage ¶
func (*GetAaRequest) ProtoMessage()
func (*GetAaRequest) ProtoReflect ¶
func (x *GetAaRequest) ProtoReflect() protoreflect.Message
func (*GetAaRequest) Reset ¶
func (x *GetAaRequest) Reset()
func (*GetAaRequest) String ¶
func (x *GetAaRequest) String() string
type GetAaResponse ¶
type GetAaResponse struct { Aa *Aa `protobuf:"bytes,1,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*GetAaResponse) Descriptor
deprecated
func (*GetAaResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAaResponse.ProtoReflect.Descriptor instead.
func (*GetAaResponse) GetAa ¶
func (x *GetAaResponse) GetAa() *Aa
func (*GetAaResponse) ProtoMessage ¶
func (*GetAaResponse) ProtoMessage()
func (*GetAaResponse) ProtoReflect ¶
func (x *GetAaResponse) ProtoReflect() protoreflect.Message
func (*GetAaResponse) Reset ¶
func (x *GetAaResponse) Reset()
func (*GetAaResponse) String ¶
func (x *GetAaResponse) String() string
type ListAasRequest ¶
type ListAasRequest struct {
// contains filtered or unexported fields
}
func (*ListAasRequest) Descriptor
deprecated
func (*ListAasRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAasRequest.ProtoReflect.Descriptor instead.
func (*ListAasRequest) ProtoMessage ¶
func (*ListAasRequest) ProtoMessage()
func (*ListAasRequest) ProtoReflect ¶
func (x *ListAasRequest) ProtoReflect() protoreflect.Message
func (*ListAasRequest) Reset ¶
func (x *ListAasRequest) Reset()
func (*ListAasRequest) String ¶
func (x *ListAasRequest) String() string
type ListAasResponse ¶
type ListAasResponse struct { Aa *Aa `protobuf:"bytes,1,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*ListAasResponse) Descriptor
deprecated
func (*ListAasResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAasResponse.ProtoReflect.Descriptor instead.
func (*ListAasResponse) GetAa ¶
func (x *ListAasResponse) GetAa() *Aa
func (*ListAasResponse) ProtoMessage ¶
func (*ListAasResponse) ProtoMessage()
func (*ListAasResponse) ProtoReflect ¶
func (x *ListAasResponse) ProtoReflect() protoreflect.Message
func (*ListAasResponse) Reset ¶
func (x *ListAasResponse) Reset()
func (*ListAasResponse) String ¶
func (x *ListAasResponse) String() string
type UnimplementedAaServiceServer ¶
type UnimplementedAaServiceServer struct { }
UnimplementedAaServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAaServiceServer) CreateAa ¶
func (UnimplementedAaServiceServer) CreateAa(context.Context, *CreateAaRequest) (*CreateAaResponse, error)
func (UnimplementedAaServiceServer) DeleteAa ¶
func (UnimplementedAaServiceServer) DeleteAa(context.Context, *DeleteAaRequest) (*DeleteAaResponse, error)
func (UnimplementedAaServiceServer) GetAa ¶
func (UnimplementedAaServiceServer) GetAa(context.Context, *GetAaRequest) (*GetAaResponse, error)
func (UnimplementedAaServiceServer) ListAas ¶
func (UnimplementedAaServiceServer) ListAas(*ListAasRequest, AaService_ListAasServer) error
func (UnimplementedAaServiceServer) UpdateAa ¶
func (UnimplementedAaServiceServer) UpdateAa(context.Context, *UpdateAaRequest) (*UpdateAaResponse, error)
type UnsafeAaServiceServer ¶
type UnsafeAaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AaServiceServer will result in compilation errors.
type UpdateAaRequest ¶
type UpdateAaRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Aa *Aa `protobuf:"bytes,2,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*UpdateAaRequest) Descriptor
deprecated
func (*UpdateAaRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAaRequest.ProtoReflect.Descriptor instead.
func (*UpdateAaRequest) GetAa ¶
func (x *UpdateAaRequest) GetAa() *Aa
func (*UpdateAaRequest) GetId ¶
func (x *UpdateAaRequest) GetId() int32
func (*UpdateAaRequest) ProtoMessage ¶
func (*UpdateAaRequest) ProtoMessage()
func (*UpdateAaRequest) ProtoReflect ¶
func (x *UpdateAaRequest) ProtoReflect() protoreflect.Message
func (*UpdateAaRequest) Reset ¶
func (x *UpdateAaRequest) Reset()
func (*UpdateAaRequest) String ¶
func (x *UpdateAaRequest) String() string
type UpdateAaResponse ¶
type UpdateAaResponse struct { Aa *Aa `protobuf:"bytes,1,opt,name=aa,proto3" json:"aa,omitempty"` // contains filtered or unexported fields }
func (*UpdateAaResponse) Descriptor
deprecated
func (*UpdateAaResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAaResponse.ProtoReflect.Descriptor instead.
func (*UpdateAaResponse) GetAa ¶
func (x *UpdateAaResponse) GetAa() *Aa
func (*UpdateAaResponse) ProtoMessage ¶
func (*UpdateAaResponse) ProtoMessage()
func (*UpdateAaResponse) ProtoReflect ¶
func (x *UpdateAaResponse) ProtoReflect() protoreflect.Message
func (*UpdateAaResponse) Reset ¶
func (x *UpdateAaResponse) Reset()
func (*UpdateAaResponse) String ¶
func (x *UpdateAaResponse) String() string