v1alpha

package
v0.0.0-...-0939d39 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterActuaryServiceHandler

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

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

func RegisterActuaryServiceHandlerClient

func RegisterActuaryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActuaryServiceClient) error

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

func RegisterActuaryServiceHandlerFromEndpoint

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

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

func RegisterActuaryServiceHandlerServer

func RegisterActuaryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActuaryServiceServer) error

RegisterActuaryServiceHandlerServer registers the http handlers for service ActuaryService to "mux". UnaryRPC :call ActuaryServiceServer 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 RegisterActuaryServiceHandlerFromEndpoint instead.

func RegisterActuaryServiceServer

func RegisterActuaryServiceServer(s *grpc.Server, srv ActuaryServiceServer)

Types

type ActuaryServiceClient

type ActuaryServiceClient interface {
	Record(ctx context.Context, in *RecordRequest, opts ...grpc.CallOption) (*RecordResponse, error)
}

ActuaryServiceClient is the client API for ActuaryService service.

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

func NewActuaryServiceClient

func NewActuaryServiceClient(cc *grpc.ClientConn) ActuaryServiceClient

type ActuaryServiceServer

type ActuaryServiceServer interface {
	Record(context.Context, *RecordRequest) (*RecordResponse, error)
}

ActuaryServiceServer is the server API for ActuaryService service.

type Allocation

type Allocation struct {
	Datetime             *timestamp.Timestamp `protobuf:"bytes,1,opt,name=datetime,proto3" json:"datetime,omitempty"`
	Who                  string               `protobuf:"bytes,2,opt,name=who,proto3" json:"who,omitempty"`
	What                 string               `protobuf:"bytes,3,opt,name=what,proto3" json:"what,omitempty"`
	Detail               map[string]uint64    `` /* 154-byte string literal not displayed */
	Labels               map[string]string    `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Allocation) Descriptor

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

func (*Allocation) GetDatetime

func (m *Allocation) GetDatetime() *timestamp.Timestamp

func (*Allocation) GetDetail

func (m *Allocation) GetDetail() map[string]uint64

func (*Allocation) GetLabels

func (m *Allocation) GetLabels() map[string]string

func (*Allocation) GetWhat

func (m *Allocation) GetWhat() string

func (*Allocation) GetWho

func (m *Allocation) GetWho() string

func (*Allocation) ProtoMessage

func (*Allocation) ProtoMessage()

func (*Allocation) Reset

func (m *Allocation) Reset()

func (*Allocation) String

func (m *Allocation) String() string

func (*Allocation) XXX_DiscardUnknown

func (m *Allocation) XXX_DiscardUnknown()

func (*Allocation) XXX_Marshal

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

func (*Allocation) XXX_Merge

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

func (*Allocation) XXX_Size

func (m *Allocation) XXX_Size() int

func (*Allocation) XXX_Unmarshal

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

type RecordRequest

type RecordRequest struct {
	Available            map[string]uint64 `` /* 160-byte string literal not displayed */
	Allocations          []*Allocation     `protobuf:"bytes,2,rep,name=allocations,proto3" json:"allocations,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*RecordRequest) Descriptor

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

func (*RecordRequest) GetAllocations

func (m *RecordRequest) GetAllocations() []*Allocation

func (*RecordRequest) GetAvailable

func (m *RecordRequest) GetAvailable() map[string]uint64

func (*RecordRequest) ProtoMessage

func (*RecordRequest) ProtoMessage()

func (*RecordRequest) Reset

func (m *RecordRequest) Reset()

func (*RecordRequest) String

func (m *RecordRequest) String() string

func (*RecordRequest) XXX_DiscardUnknown

func (m *RecordRequest) XXX_DiscardUnknown()

func (*RecordRequest) XXX_Marshal

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

func (*RecordRequest) XXX_Merge

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

func (*RecordRequest) XXX_Size

func (m *RecordRequest) XXX_Size() int

func (*RecordRequest) XXX_Unmarshal

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

type RecordResponse

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

func (*RecordResponse) Descriptor

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

func (*RecordResponse) ProtoMessage

func (*RecordResponse) ProtoMessage()

func (*RecordResponse) Reset

func (m *RecordResponse) Reset()

func (*RecordResponse) String

func (m *RecordResponse) String() string

func (*RecordResponse) XXX_DiscardUnknown

func (m *RecordResponse) XXX_DiscardUnknown()

func (*RecordResponse) XXX_Marshal

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

func (*RecordResponse) XXX_Merge

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

func (*RecordResponse) XXX_Size

func (m *RecordResponse) XXX_Size() int

func (*RecordResponse) XXX_Unmarshal

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

type UnimplementedActuaryServiceServer

type UnimplementedActuaryServiceServer struct {
}

UnimplementedActuaryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedActuaryServiceServer) Record

Jump to

Keyboard shortcuts

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