console

package
v0.0.0-...-6dd9c4d Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func XconfInit

func XconfInit(opt *xconf.Options, group, name string) error

func XconfLoad

func XconfLoad(content []byte) error

Types

type Console

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

func NewServer

func NewServer(logger *zap.Logger, db *clientv3.Client) *Console

func (*Console) CreateConfig

func (c *Console) CreateConfig(ctx context.Context, in *pb.CreateConfigRequest) (*pb.Config, error)

func (*Console) CreateGroup

func (c *Console) CreateGroup(ctx context.Context, in *pb.CreateGroupRequest) (*pb.Group, error)

func (*Console) CreateNamespace

func (c *Console) CreateNamespace(ctx context.Context, in *pb.CreateNamespaceRequest) (*pb.Namespace, error)

func (*Console) DeleteConfig

func (c *Console) DeleteConfig(ctx context.Context, in *pb.DeleteConfigRequest) (*empty.Empty, error)

func (*Console) GetConfig

func (c *Console) GetConfig(ctx context.Context, in *pb.GetConfigRequest) (*pb.Config, error)

func (*Console) ListConfigs

func (c *Console) ListConfigs(ctx context.Context, in *pb.ListConfigsRequest) (*pb.ListConfigsResponse, error)

func (*Console) ListGroups

func (c *Console) ListGroups(ctx context.Context, in *pb.ListGroupsRequest) (*pb.ListGroupsResponse, error)

func (*Console) ListNamespaces

func (c *Console) ListNamespaces(ctx context.Context, in *empty.Empty) (*pb.ListNamespacesResponse, error)

func (*Console) UpdateConfig

func (c *Console) UpdateConfig(ctx context.Context, in *pb.UpdateConfigRequest) (*pb.Config, error)

type XconfConfig

type XconfConfig struct {
	ID      string  `json:"id"`
	Type    string  `json:"type"`
	Name    string  `json:"name"`
	PPU     float32 `json:"ppu"`
	Batters struct {
		Batter []struct {
			Type string `json:"type"`
		} `json:"batter"`
	} `json:"batters"`
}

XconfConfig Change the struct for you app config

func Xconf

func Xconf() *XconfConfig

Jump to

Keyboard shortcuts

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