timetrack: go.pedge.io/timetrack Index | Files | Directories

package timetrack

import "go.pedge.io/timetrack"

Index

Package Files

timetrack.go timetrack.pb.go timetrack.pb.gw.go

Variables

var (
    // Version is the version.
    Version = &protoversion.Version{
        Major:      0,
        Minor:      0,
        Micro:      1,
        Additional: "dev",
    }
)

func RegisterAPIHandler Uses

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

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

func RegisterAPIHandlerFromEndpoint Uses

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

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

func RegisterAPIServer Uses

func RegisterAPIServer(s *grpc.Server, srv APIServer)

type APIClient Uses

type APIClient interface {
    Create(ctx context.Context, in *Task, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
    Start(ctx context.Context, in *Task, opts ...grpc.CallOption) (*Range, error)
    Stop(ctx context.Context, in *Task, opts ...grpc.CallOption) (*Range, error)
    List(ctx context.Context, in *Task, opts ...grpc.CallOption) (*Ranges, error)
    Delete(ctx context.Context, in *Task, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
    DeleteRange(ctx context.Context, in *RangeReference, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
}

func NewAPIClient Uses

func NewAPIClient(cc *grpc.ClientConn) APIClient

type APIServer Uses

type APIServer interface {
    Create(context.Context, *Task) (*google_protobuf1.Empty, error)
    Start(context.Context, *Task) (*Range, error)
    Stop(context.Context, *Task) (*Range, error)
    List(context.Context, *Task) (*Ranges, error)
    Delete(context.Context, *Task) (*google_protobuf1.Empty, error)
    DeleteRange(context.Context, *RangeReference) (*google_protobuf1.Empty, error)
}

type Range Uses

type Range struct {
    TaskId         string                  `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
    Id             uint64                  `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
    TimestampRange *pb_time.TimestampRange `protobuf:"bytes,3,opt,name=timestamp_range,json=timestampRange" json:"timestamp_range,omitempty"`
}

func (*Range) Descriptor Uses

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

func (*Range) GetTimestampRange Uses

func (m *Range) GetTimestampRange() *pb_time.TimestampRange

func (*Range) ProtoMessage Uses

func (*Range) ProtoMessage()

func (*Range) Reset Uses

func (m *Range) Reset()

func (*Range) String Uses

func (m *Range) String() string

type RangeReference Uses

type RangeReference struct {
    TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
    Id     uint64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
}

func (*RangeReference) Descriptor Uses

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

func (*RangeReference) ProtoMessage Uses

func (*RangeReference) ProtoMessage()

func (*RangeReference) Reset Uses

func (m *RangeReference) Reset()

func (*RangeReference) String Uses

func (m *RangeReference) String() string

type Ranges Uses

type Ranges struct {
    Range []*Range `protobuf:"bytes,1,rep,name=Range,json=range" json:"Range,omitempty"`
}

func (*Ranges) Descriptor Uses

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

func (*Ranges) GetRange Uses

func (m *Ranges) GetRange() []*Range

func (*Ranges) ProtoMessage Uses

func (*Ranges) ProtoMessage()

func (*Ranges) Reset Uses

func (m *Ranges) Reset()

func (*Ranges) String Uses

func (m *Ranges) String() string

type Task Uses

type Task struct {
    Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*Task) Descriptor Uses

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

func (*Task) ProtoMessage Uses

func (*Task) ProtoMessage()

func (*Task) Reset Uses

func (m *Task) Reset()

func (*Task) String Uses

func (m *Task) String() string

type Tasks Uses

type Tasks struct {
    Task []*Task `protobuf:"bytes,1,rep,name=task" json:"task,omitempty"`
}

func (*Tasks) Descriptor Uses

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

func (*Tasks) GetTask Uses

func (m *Tasks) GetTask() []*Task

func (*Tasks) ProtoMessage Uses

func (*Tasks) ProtoMessage()

func (*Tasks) Reset Uses

func (m *Tasks) Reset()

func (*Tasks) String Uses

func (m *Tasks) String() string

Directories

PathSynopsis
cmd/timetrack
cmd/timetrackd
persist
serve

Package timetrack imports 15 packages (graph) and is imported by 4 packages. Updated 2016-07-21. Refresh now. Tools for package owners.