Documentation ¶
Index ¶
- func XconfInit(opt *xconf.Options, group, name string) error
- func XconfLoad(content []byte) error
- type Console
- func (c *Console) CreateConfig(ctx context.Context, in *pb.CreateConfigRequest) (*pb.Config, error)
- func (c *Console) CreateGroup(ctx context.Context, in *pb.CreateGroupRequest) (*pb.Group, error)
- func (c *Console) CreateNamespace(ctx context.Context, in *pb.CreateNamespaceRequest) (*pb.Namespace, error)
- func (c *Console) DeleteConfig(ctx context.Context, in *pb.DeleteConfigRequest) (*empty.Empty, error)
- func (c *Console) GetConfig(ctx context.Context, in *pb.GetConfigRequest) (*pb.Config, error)
- func (c *Console) ListConfigs(ctx context.Context, in *pb.ListConfigsRequest) (*pb.ListConfigsResponse, error)
- func (c *Console) ListGroups(ctx context.Context, in *pb.ListGroupsRequest) (*pb.ListGroupsResponse, error)
- func (c *Console) ListNamespaces(ctx context.Context, in *empty.Empty) (*pb.ListNamespacesResponse, error)
- func (c *Console) UpdateConfig(ctx context.Context, in *pb.UpdateConfigRequest) (*pb.Config, error)
- type XconfConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
func (*Console) CreateConfig ¶
func (*Console) CreateGroup ¶
func (*Console) CreateNamespace ¶
func (*Console) DeleteConfig ¶
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 (*Console) UpdateConfig ¶
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
Click to show internal directories.
Click to hide internal directories.