apiserver

package
v0.0.0-...-16dfdc2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirPermission      = 0755
	MetaFilePermission = 0644
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DevToolServer

type DevToolServer struct {
}

func NewDevToolServer

func NewDevToolServer() *DevToolServer

func (*DevToolServer) DebugSwitch

type LogStreamAdminServer

type LogStreamAdminServer struct {

	//key is raft group, ignore value
	DeleteForbid map[string]bool
	// contains filtered or unexported fields
}

This handler use to process 1) LogStream start 2) LogStream stop 3) LogStream delete

func NewLogStreamAdminServer

func NewLogStreamAdminServer(getter RaftGroupGetter) *LogStreamAdminServer

func (*LogStreamAdminServer) DeleteFile

func (*LogStreamAdminServer) GetDeletePermission

func (*LogStreamAdminServer) LeaderTransfer

rpc handler for leader transfer

func (*LogStreamAdminServer) LogStreamDelete

func (*LogStreamAdminServer) LogStreamStart

func (*LogStreamAdminServer) LogStreamStop

func (*LogStreamAdminServer) SetDeletePermission

type MembershipAdminServer

type MembershipAdminServer struct {
	// contains filtered or unexported fields
}

This handler use to process 1) query membership within raft group 2) add membership within raft group 3) delete membership within raft group 4) update membership within raft group

func NewMembershipAdminServer

func NewMembershipAdminServer(getter RaftGroupGetter) *MembershipAdminServer

func (*MembershipAdminServer) MemberAdd

func (*MembershipAdminServer) MemberList

func (*MembershipAdminServer) MemberRemove

func (*MembershipAdminServer) MemberUpdate

type RaftGroupGetter

type RaftGroupGetter interface {
	GetRaftGroup(groupName string) (*raftgroup.RaftGroup, error)
}

type RateAdminServer

type RateAdminServer struct {
	// contains filtered or unexported fields
}

func NewRateAdminServer

func NewRateAdminServer(getter RateInfoGetter) *RateAdminServer

func (*RateAdminServer) ListRateInfo

this function use for rpc server handle list rate info

func (*RateAdminServer) UpdateRateInfo

this function use for rpc server handle update rate info

type RateInfoGetter

type RateInfoGetter interface {
	GetRuntimeConfig() *runtimeconfig.RuntimeConfig
	GetRuntimeConfigStore() *runtimeconfig.RuntimeConfigStore
}

type SnapshotAdminServer

type SnapshotAdminServer struct {
	// contains filtered or unexported fields
}

func NewSnapshotAdminServer

func NewSnapshotAdminServer(getter RaftGroupGetter) *SnapshotAdminServer

func (*SnapshotAdminServer) CreateSnapshotMeta

func (s *SnapshotAdminServer) CreateSnapshotMeta(ctx context.Context, r *pb.SnapshotRequeest) (*pb.SnapshotResponse, error)

type SnapshotMeta

type SnapshotMeta struct {
	//RaftGroupName
	RaftGroupName string
	//ApplyIndex
	ApplyIndex uint64
	//VoteFor
	Vote raftgroup.PersistentVote
	//Membership
	Members  membership.MembershipMembers
	Segments []*logstream.SegmentFile
}

Jump to

Keyboard shortcuts

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